* Dave Rolsky <[EMAIL PROTECTED]> [2003-07-24T00:39:01]
> On Wed, 23 Jul 2003, Ricardo SIGNES wrote:
> 
> > Is there a good way to determine whether to not to return Unicode
> > strings?  That's what I'm doing now, but obviously it's not so nice at
> > the console.  I don't do much serious work with Unicode in Perl, and
> > there might be an obvious solution I don't know about.
> 
> For the Unicode stuff, look at what's done in the DateTime::Locale
> modules.  Really you just write everything as bytes and stick "use utf8"
> at the top of the module.  In our case, we only load the utf8 pragma with
> Perl 5.6.0+

What I was hoping for was a way to know whether it's useful to provide
Unicode strings as results.  In Esperanto, there are well-accepted
conventions for ASCIIfying its Latin-3 letters.  For example,
"\x{0109}u" in Unicode would be written "cxu" in 7-bit/latin-1/ascii.

If it's possible to know at runtime which is available, the locale could
provide the more useful string.  Perhaps this problem is out of the
scope of DateTime, though...

-- 
rjbs

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to