Hi Jeff,
On Fri, 2003-11-07 at 01:11, Jeffrey Bonevich wrote:
> I have a character encoding utility that turns high ASCII (i.e. ord
> value > 127) into HTML entities (so 'Ã' which is unicode \u00e0 becomes
> 'à'). In the code there is one big ol' honkin' switch statement
> with each high ascii character (that I care about) as a case, so:
>
> switch( chr) {
> case 'Ã': buf.append("à"); break; ....
After a few of our developers here changed from Win32 to Linux machines,
we had even worse problems with encodings, since some diffferent editors
on the different OS had different default encodings.
It could be a real pain to do it, but I would recommend you anyway to
change your code to
switch( chr) {
case '\u00e0': buf.append("à"); break; .... /* char=Ã */
cu,
--
Martin Skopp
Riege Software International GmbH
Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com
This email is intended to be viewed with a nonproportional font.
Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
Fingerprint: 1970 C78D 9A1D 99FA 5CE4 5C0D 29E6 6A95 3D40 27B5
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]