Click here to get back home

try to use "locale" with german and coepage 437 (dos)

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
try to use "locale" with german and coepage 437 (dos) =?ISO-8859-1?Q?mathias_w=FCndi 03-08-2008
Posted by =?ISO-8859-1?Q?mathias_w=FCndi on March 8, 2008, 11:47 am
Please log in for more thread options
Hi,

i look for informations about the use of the perl pragma "locale". the
reason why: i have old input data coded with codepage 437. and i want
to use the normal matchingcharacter \b (non alphabetic char) and \w
(alphabetic char).
i found a lot of site about posix under linux but i work under windows
xp. am i the first with this problem?
i want to tell perl what byte between 32 and 255 is a allphabetical
character (\w) and what is not (\b).
thanks for ideas.

bye, mathias


Posted by jm on March 9, 2008, 3:08 pm
Please log in for more thread options
mathias wündisch a écrit :
> Hi,
>
> i look for informations about the use of the perl pragma "locale". the
> reason why: i have old input data coded with codepage 437. and i want
> to use the normal matchingcharacter \b (non alphabetic char) and \w
> (alphabetic char).
> i found a lot of site about posix under linux but i work under windows
> xp. am i the first with this problem?
> i want to tell perl what byte between 32 and 255 is a allphabetical
> character (\w) and what is not (\b).
> thanks for ideas.
>
> bye, mathias
>
What's about using Encode module, with decode function to transform your
IBM/CP 437 data to utf-8, and then using utf-8 (transparently) behaviour
of perl regex?

Posted by =?ISO-8859-1?Q?mathias_w=FCndi on March 15, 2008, 7:52 am
Please log in for more thread options

> What's about using Encode module, with decode function to transform your
> IBM/CP 437 data to utf-8, and then using utf-8 (transparently) behaviour
> of perl regex?

dear jm, ok this is a good idea! i will try this. thanks for
suggestion. m.

Similar ThreadsPosted
locale and print() October 11, 2004, 5:03 pm
locale problem January 19, 2005, 5:12 pm
Locale/Codepage October 7, 2005, 7:33 am
Problems with use locale and regexp December 29, 2006, 6:16 am
Perl 2exe and locale?! June 27, 2007, 4:56 am
FAQ: How can I match a locale-smart version of "/[a-zA-Z]/"? October 17, 2004, 11:10 pm
FAQ 6.7: How can I match a locale-smart version of "/[a-zA-Z]/"? December 15, 2004, 6:03 am
FAQ 6.7 How can I match a locale-smart version of "/[a-zA-Z]/"? February 7, 2005, 6:03 pm
FAQ 6.7 How can I match a locale-smart version of "/[a-zA-Z]/"? April 6, 2005, 11:03 am
FAQ 6.7 How can I match a locale-smart version of "/[a-zA-Z]/"? June 22, 2005, 11:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap