Solved

File encoding in source safe

Posted on 2004-10-05
5
2,300 Views
Last Modified: 2008-02-01
Hi,

   I have an application is on the source safe, and the webforms (.aspx) files have data written in arabic. The encoding I am using to save arabic data is Unicode 1200.  If another programmer checks out the file after I check it in, then the file will be corrupted. And if I use different encoding then the file will be ok but the arabic data will be corrupted. Is there a way to solve this?
After I change the encoding to Unicode 1200, I get the following message, maybe you'll find it useful:

The character encoding for the file D:\Projects\test\aspx\myfolder\myfile.aspx has changed. Your source control provider may have problems managing files with this type of encoding. For example, if you save an ANSI-encoded file as UTF-8 and then check in the file, the master copy may be corrupted.

Help!!!!!!

    Mazen
0
Comment
Question by:Mazen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:mmarinov
ID: 12225632
Hi,

how do you set the Unicode 1200 to your pages ? have you use Advanced Save Options from the File Menu ?

Regards,
B..M
0
 
LVL 1

Author Comment

by:Mazen
ID: 12225798
Yes this exactly what I did. File -> Advanced  save options and then I choose Unicode 1200.

   Mazen
0
 
LVL 2

Accepted Solution

by:
platinum505 earned 250 total points
ID: 12229043
I have had a similar problem when storing SQL scripts/Resource files. When you add a file to VSS the file type would be text for know file types. (In your case the aspx files are stored as text files). There seems to a bug in VSS which would corrupt non-ansi files.

Try changing the file type to Binary. In my case after I changed the file type to binary then the problem got resolved.

Kamalakar Nellipudi
0
 
LVL 28

Assisted Solution

by:mmarinov
mmarinov earned 250 total points
ID: 12234497
here is some solution for the problem
http://www.kbalertz.com/kb_317992.aspx
B..M
0
 
LVL 1

Author Comment

by:Mazen
ID: 12235225

  Thank you both alot. Saving the files as binary files solved the problem. It works just like I wanted it to and it saved me alot of trouble.
      Mazen
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question