Groups | Blog | Home
all groups > asp.net > february 2007 >

asp.net : Localization problem



Alexey Smirnov
2/20/2007 1:21:33 PM
[quoted text, click to view]

What files? txt?
Aleyna[]
2/20/2007 11:05:01 PM
Hi,
I've just moved to my new server which is located at USA(meaning, default
language is Englsh) however I saw that Turkish characters do not seem
properly.

I viewed the uploaded files via remote desktop and saw that Turkish
characters seem corrupted but after downloading and opening it on my
computer, everything seems ok.
Same problem also appearred in my database.
I used UTF-8 for the file encoding and also set UTF-8 for request and
response encoding ?

What is happening? What can I do?

Appreciate any help.
Thanks

Alexey Smirnov
2/21/2007 3:40:55 AM
[quoted text, click to view]

Where do you "viewed the uploaded files via remote desktop"?
Did you used a VS.NET or other UTF-enabled editor, or you opened aspx
in IE?

Does the page looks corrupted if you open it in the browser from your
client PC as http://yoursite/page.aspx?

I think normally it should not be a problem with UTF even for Arabic
or Chinese.
Alexey Smirnov
2/21/2007 12:34:22 PM
[quoted text, click to view]

Sounds like you saved your form in Turkish, not UTF-8.

You should save your aspx in VS.NET on your client PC in UTF-8.

File -> Save As -> Save with Encoding

then copy it to your server

Ensure that the web.config has

<globalization requestEncoding="UTF-8" responseEncoding="UTF-8"
culture="tr-TR" uiCulture="tr"/>
Aleyna[]
2/21/2007 12:57:22 PM
I am talking about the all files, aspx, ascx and so on...

I simply solved the problem by changing the default encoding of web server
to Turkish
but the same problem occurs when I use other languages say arabic or
hebrew...

Isn't there a certain solution for that? And what can you suggest about
which encoding I should use for all of my files.

"Alexey Smirnov" <alexey.smirnov@gmail.com>, haber iletisinde sunlari
yazdi:1172006493.530627.271900@j27g2000cwj.googlegroups.com...
[quoted text, click to view]

Aleyna[]
2/21/2007 6:53:34 PM
I used a UTF enabled editor on remote desktop. Even I tried to save pages in
other formats (Unicode, ANSI) and corrected some corrupted words then tried
again but nothing changed.

[quoted text, click to view]
Yes, the same problem also occured on my browser(in fact that's the real
problem) when I simply visit the website. I also tried from different
computers but the result is the same.

How come this can occur even if I use UTF? I undertand nothing!
Can it be releated with VS? Can I change my default encoding on Visual
Studio?
Because I just design website on VS and deployed it.

By the way, thanks for your interest.

"Alexey Smirnov" <alexey.smirnov@gmail.com>, haber iletisinde sunlari
yazdi:1172058055.578389.163810@h3g2000cwc.googlegroups.com...
[quoted text, click to view]

AddThis Social Bookmark Button