在 2005/8/13,墳墓 brianhsu.hsu@gmail.com 撰寫:
I'm trying to parse a XML file with UTF-8 encoded, I have figure out how to use Parser.XML module and it works fine.
But there is a problem, I can't write the UTF-8 string I read from the file, but I could use GTK2 module to display those string.
When I tried use write() to let it display on console, Pike compilan:
Stdio.File->write(): cannot output wide strings. _static_modules.files()->Fd: Fd(1)->write("\110112\61062\n") aa.pike:21: /home/brianhsu/aa()->main() =================================================
Sloved.
I missunderstood utf8_to_string and string_to_utf8. I works fine with converting it using string_to_utf8