character encodings
From: Jaap Karssenberg (j.g.karssenberg_at_student.utwente.nl)
Date: 11/30/03
- Next message: Nilendu: "Problem installing through PPM"
- Previous message: Ben Morrow: "Re: DBI error handling"
- Next in thread: Jürgen Exner: "Re: character encodings"
- Reply: Jürgen Exner: "Re: character encodings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 17:03:02 +0100
I have a script that should read files utf8 compliant, so I used
binmode(FILE, ':utf8'). But now it appears some users have latin2
encoded files, causing some regexes to throw warnings about malformed
utf8 chars. Is there a way to detect the character encoding and DWIM ? I
would hate to have to tell my users they should convert everything to
utf8 first.
-- ) ( Jaap Karssenberg || Pardus [Larus] | |0| | : : http://pardus-larus.student.utwente.nl/~pardus | | |0| ) \ / ( |0|0|0| ",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :)
- Next message: Nilendu: "Problem installing through PPM"
- Previous message: Ben Morrow: "Re: DBI error handling"
- Next in thread: Jürgen Exner: "Re: character encodings"
- Reply: Jürgen Exner: "Re: character encodings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|