[ILUG] Locale fun and games.

Brian Foster blf at blf.utvinternet.ie
Sat Jul 30 10:21:22 IST 2005


  | From: Niall Donegan <doneagain at csn.ul.ie>
  | Date: Thu, 28 Jul 2005 16:17:16 +0100 (IST)
  | 
  | When trying to put a £ symbol in a file on a remote RHEL3
  | machine, I constantly get a £ symbol preceded by a capital
  | A with a little hat on it.  [ ... ]   Has anyone here had
  | a similar problem, and if so, how was it resolved?

 this is the classic symptom that something,
 somewhere, either cannot handle UTF-8 (and
 is interpreting the byte-stream as either
 ISO-8859-1 or -15 (usually));  or something,
 somewhere, does not have the right locale
 charset (e.g., is using ISO-8859-1/15 and
 not UTF-8 for the locale).

 basically, what is happening is something,
 somewhere, is interpreting the two bytes that
 make up the UTF-8 encoding of £ as two separate
 one-byte characters (which in turn are treated
 as being ISO-8859-1/15).  and in this case, it
 just so happens the 2nd byte of the UTF-8 is
 the correct ISO-8859-1/15 byte for £, which
 slightly confuses the issue.  the 1st byte is
 yer Šor  or whatever it is.

cheers!
	-blf-
-- 
Experienced (20+ yrs) kernel/software Eng: | Brian Foster   Montpellier,
 • Unix, embedded, &tc;  • Linux;  • doc;  | blf at utvinternet.ie   FRANCE
 • IDL, automated testing, process, &tc.   |  Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie  |     http://www.stopesso.com



More information about the ILUG mailing list