Use of encoding/decoding and 3-param open

2007-11-13 Thread Greger Leijonhufvud
I need to take utf8 strings (from an Oracle database) and write them to a file in a single-byte codeset (8859-1, 8859-2). I cannot get it to work at all. Test program enclosed Here is what I get on output: vzb601b: /vzb/vzb601b/work/gleijonh/utftest $ perl tryit.pl Name is \x{c384}s

Re: Use of encoding/decoding and 3-param open

2007-11-13 Thread Juerd Waalboer
> Name is \x{c384}stan\x{c3a5} Bruk AB\n UTF String:Name is ì U+C384 and U+C3A5 are most definitely not what you're after. The unicode codepoint U+00C4 (LATIN CAPITAL LETTER A WITH DIAERESIS) is the two bytes C3 and 84 when encoded to UTF-8, but you should never need to manually enter this. \x