HighTechTalks DotNet Forums  

Encolding xml file Issue

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Encolding xml file Issue in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Darren Coleman
 
Posts: n/a

Default Encolding xml file Issue - 03-06-2006 , 07:50 PM






I have an app that is being translated to Spanish. The purpose of the app is
to solve equations and uses Greek characters for the parameter symbols. I
store all this information in xml files.



For some reason when i save the file the Spanish text is correct, e.g. chars
like "ó" are present however the Greek chars are incorrect or if i change
the encoding the Greek is correct (like "?") but the Spanish chars are
dropped from the words eg ( neumático becomes neumtico).



Does anyone have any suggestions? What am I doing wrong? The funny part is
that this was working before but now it's not.





Reply With Quote
  #2  
Old   
Michael \(michka\) Kaplan [MS]
 
Posts: n/a

Default Re: Encolding xml file Issue - 03-06-2006 , 08:01 PM






Use UTF-8 for your encoding.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

"Darren Coleman" <nothanks (AT) spam (DOT) com> wrote

Quote:
I have an app that is being translated to Spanish. The purpose of the app
is to solve equations and uses Greek characters for the parameter symbols.
I store all this information in xml files.



For some reason when i save the file the Spanish text is correct, e.g.
chars like "ó" are present however the Greek chars are incorrect or if i
change the encoding the Greek is correct (like "?") but the Spanish chars
are dropped from the words eg ( neumático becomes neumtico).



Does anyone have any suggestions? What am I doing wrong? The funny part is
that this was working before but now it's not.







Reply With Quote
  #3  
Old   
Darren Coleman
 
Posts: n/a

Default Re: Encolding xml file Issue - 03-07-2006 , 11:16 AM



I do use UTF-8 and i get the error i descibe; the greek chars come in fine
but the spanish chars get droped. I've tried diffrent encodings but now
luck.


"Michael (michka) Kaplan [MS]" <michkap (AT) microsoft (DOT) online.com> wrote in
message news:eY3vmKYQGHA.3984 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Quote:
Use UTF-8 for your encoding.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

"Darren Coleman" <nothanks (AT) spam (DOT) com> wrote in message
news:ucnujEYQGHA.4956 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I have an app that is being translated to Spanish. The purpose of the app
is to solve equations and uses Greek characters for the parameter symbols.
I store all this information in xml files.



For some reason when i save the file the Spanish text is correct, e.g.
chars like "ó" are present however the Greek chars are incorrect or if i
change the encoding the Greek is correct (like "?") but the Spanish chars
are dropped from the words eg ( neumático becomes neumtico).



Does anyone have any suggestions? What am I doing wrong? The funny part
is that this was working before but now it's not.









Reply With Quote
  #4  
Old   
Darren Coleman
 
Posts: n/a

Default Re: Encolding xml file Issue - 03-07-2006 , 11:52 AM



ok figured it out....

i was using some source files that when viewed in notepad showed the correct
spanish chars but when opened it didn't see it as UTF-8; i think it was
ANSI. When i resaved the source files as UTF-8 the run my project then it
all worked out.

thanks for the help MichKa, got the ball rolling in my mind on what to look
at.


"Darren Coleman" <nothanks (AT) spam (DOT) com> wrote

Quote:
I do use UTF-8 and i get the error i descibe; the greek chars come in fine
but the spanish chars get droped. I've tried diffrent encodings but now
luck.


"Michael (michka) Kaplan [MS]" <michkap (AT) microsoft (DOT) online.com> wrote in
message news:eY3vmKYQGHA.3984 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Use UTF-8 for your encoding.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

"Darren Coleman" <nothanks (AT) spam (DOT) com> wrote in message
news:ucnujEYQGHA.4956 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I have an app that is being translated to Spanish. The purpose of the app
is to solve equations and uses Greek characters for the parameter
symbols. I store all this information in xml files.



For some reason when i save the file the Spanish text is correct, e.g.
chars like "ó" are present however the Greek chars are incorrect or if i
change the encoding the Greek is correct (like "?") but the Spanish
chars are dropped from the words eg ( neumático becomes neumtico).



Does anyone have any suggestions? What am I doing wrong? The funny part
is that this was working before but now it's not.











Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.