HighTechTalks DotNet Forums  

French Accents problem

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss French Accents problem in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Iroel Perez
 
Posts: n/a

Default French Accents problem - 10-03-2005 , 08:59 AM






Hi There,

I am having problems showing some french characters in my C# Windows
Application. So far I've noticed the "ę" (like in Arręt) shows incorrect. I
also noticed that if type the French accents in the IDE they show
accordingly, but if I edit my resource file with "winres.exe" they will not
show correctly when localizing my forms. Any idea what I am doing wrong in
my .resx files?

Thanks in advance,
I. Perez



Reply With Quote
  #2  
Old   
Sylvain Lafontaine
 
Posts: n/a

Default Re: French Accents problem - 10-09-2005 , 06:24 PM






There are some incompatibilities between the IDE and WinRes.Exe and these
two tools shouldn't be used at the same time for the same resource files.
See
http://msdn.microsoft.com/library/de...rWinresexe.asp
for more information on this topic.

You may have problem with french characters when you are using multiple
codepages on your system and inside the IDE. The best way to solve these
problems is to make sure that the files are saved with the same code page as
your system - usually this is CodePage 1252 for english and french versions
of Windows - or are saved in one of the Unicode Format. In the Advanced
Save Options window, you can choose between CodePage 1252, UTF-8 with or
without signature (both 65001) and UTF-16 with Little (1200) or Big Endian
(1201). I think that chosing UTF-8 with signature or UTF-16 Little Endian
(1200) are two good choices for solving localization problems but the use of
CodePage 1252 should be a good one, too; excerpt in the cases where this is
not the default code page of your installation of Windows.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


"Iroel Perez" <iperezNO (AT) SPAMmulticorpora (DOT) com> wrote

Quote:
Hi There,

I am having problems showing some french characters in my C# Windows
Application. So far I've noticed the "ę" (like in Arręt) shows incorrect.
I also noticed that if type the French accents in the IDE they show
accordingly, but if I edit my resource file with "winres.exe" they will
not show correctly when localizing my forms. Any idea what I am doing
wrong in my .resx files?

Thanks in advance,
I. Perez




Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: French Accents problem - 10-21-2005 , 09:28 PM



Source code file encoding can be a problem, and as Sylvain suggests, you
can avoid codepage incompatibilities by saving them in a Unicode encoding.
Note: RESX files, being XML-based, default to UTF-8.

While it unfortunately doesn't help with Visual Studio v2002 or v2003, the
version of WinRes.exe that ships with Visual Studio 2005 includes a new
compability mode. RESX files can be saved in either Visual Studio File Mode
to maintain interoperability with the IDE or in Single File Mode if they
don't need to be opened in the IDE.

Cheers,
Garrett McGowan [MSFT Developer International]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
Quote:
From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam
please)
Subject: Re: French Accents problem
Date: Sun, 9 Oct 2005 18:24:10 -0400
Newsgroups: microsoft.public.dotnet.internationalization

There are some incompatibilities between the IDE and WinRes.Exe and these
two tools shouldn't be used at the same time for the same resource files.
See
http://msdn.microsoft.com/library/de...-us/cptools/ht
ml/cpgrfWindowsFormsResourceEditorWinresexe.asp
for more information on this topic.

You may have problem with french characters when you are using multiple
codepages on your system and inside the IDE. The best way to solve these
problems is to make sure that the files are saved with the same code page
as
your system - usually this is CodePage 1252 for english and french
versions
of Windows - or are saved in one of the Unicode Format. In the Advanced
Save Options window, you can choose between CodePage 1252, UTF-8 with or
without signature (both 65001) and UTF-16 with Little (1200) or Big Endian
(1201). I think that chosing UTF-8 with signature or UTF-16 Little Endian
(1200) are two good choices for solving localization problems but the use
of
CodePage 1252 should be a good one, too; excerpt in the cases where this
is
not the default code page of your installation of Windows.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


"Iroel Perez" <iperezNO (AT) SPAMmulticorpora (DOT) com> wrote in message
news:emfGOpByFHA.3860 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi There,

I am having problems showing some french characters in my C# Windows
Application. So far I've noticed the "E (like in Arręt) shows
incorrect.
I also noticed that if type the French accents in the IDE they show
accordingly, but if I edit my resource file with "winres.exe" they will
not show correctly when localizing my forms. Any idea what I am doing
wrong in my .resx files?

Thanks in advance,
I. Perez






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.