Hello, Rasmus. Thank you for the excellent advice. I was trying to work out how to call the C-native version of ctype_print, and you managed to explain how to do so in very few bytes of text. (And led me to compile my first C program in Linux. Haven't used C for about fifteen years.)
I get the exact same output as yourself: Ubuntu:~/ctype_print$ ./a £ 0 Ubuntu:~/ctype_print$ ./a $ 16384 So you're right. It's nothing to do with PHP. Which means that my question is now: how do I fix my locale? The £ is definitely in the locale definition file (under "print") for i18n, which is copied into the LC_CTYPE section by en_GB. So am I right in thinking that it should be a valid printable character when using that locale? -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php