Re: Converting between UTF8 and local codepage without specifying local codepage

2005-11-11 Thread David Graff
[EMAIL PROTECTED] said: ... I have also come to the realization that Perl is not using the underlying system code pages but is relying on its own encoding objects to handle conversions. Since only a small set of encoding objects are available by default this would mean that I would need to

Re: Converting between UTF8 and local codepage without specifying local codepage

2005-11-09 Thread Nicholas Clark
On Tue, Nov 08, 2005 at 05:08:08PM -0500, David Schlegel wrote: And yes, figuring out the local code page on unix is particularly squirrelly. The codepage for fr_CA.ISOxxx is pretty easy but what about fr_CA and fr ? There are a lot of aliases and rules involved so that the locale is just

Re: Converting between UTF8 and local codepage without specifying local codepage

2005-11-09 Thread Nicholas Clark
On Wed, Nov 09, 2005 at 10:02:31AM -0500, David Schlegel wrote: That is helpful information. I have been spending time to determine the local page by other means but have consistently been challenged that this is the wrong approach and that Perl must know somehow. Getting a definitive

Re: Converting between UTF8 and local codepage without specifying local codepage

2005-11-08 Thread David Graff
[EMAIL PROTECTED] said: Is there someway to convert from whatever the local codepage is to utf8 and back again ? The Encode::encode and decode routines require passing a specific codepage to do the conversion but finding out what the local codepage is is very tricky across different

Re: Converting between UTF8 and local codepage without specifying local codepage

2005-11-08 Thread David Schlegel
Subject Re: Converting between UTF8 and local codepage without specifying local codepage [EMAIL PROTECTED] said: Is there someway to convert from whatever the local codepage is to utf8 and back again ? The Encode::encode and decode routines require passing a specific codepage to do