I'm using the Catalyst plugin to support utf8 encoded input and output, I have my database driver set to read in utf8, and I have Template Toolkit configured for utf8 templates.
I want to use available locale to render numbers. I'm using Number::Format in a number of places and it works with POSIX's setlocale() function. What I'm not clear on is if setlocale() plays nicely with everything above. Anyone here have experience with this? http://perldoc.perl.org/perllocale.html#Unicode-and-UTF-8 says: It is strongly recommended that when combining Unicode and locale (starting in v5.16), you use 1. use <http://perldoc.perl.org/functions/use.html> locale ':not_characters'; When this form of the pragma is used, only the non-character portions of locales are used by Perl, for exampleLC_NUMERIC . Perl assumes that you have translated all the characters it is to operate on into Unicode (actually the platform's native character set (ASCII or EBCDIC) plus Unicode). For data in files, this can conveniently be done by also specifying... For one thing I'm not using 5.16 yet - and I'm not clear what means for pre 5.16. Should I only use setlocale( &LC_NUMERIC, $locale ), for example? That is, using can setlocale( &LC_ALL, $locale ) cause problems with my existing character handling? -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/