CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
UTF-8 problem

 



kepler
Novice

May 18, 2011, 11:47 AM

Post #1 of 2 (1585 views)
UTF-8 problem Can't Post

Hi,

I have a databese in UTF-8 code. There are caracters that Perl does not know how to read. And I want to exclude them. The database has lines. How can I exclude the lines that have such caracters? If I try to copy the squared symbol, it gives the ? symbol.

Regards,

Kepler


FishMonger
Veteran / Moderator

May 18, 2011, 1:37 PM

Post #2 of 2 (1582 views)
Re: [kepler] UTF-8 problem [In reply to] Can't Post

Instead of ignoring utf8 characters, you should use a module that allows you to translate to/from utf8.

http://search.cpan.org/~jesse/perl-5.14.0/lib/utf8.pm

http://search.cpan.org/~snowhare/Unicode-MapUTF8-1.11/pod/MapUTF8.en.pod

http://search.cpan.org/~doherty/utf8-all-0.002/lib/utf8/all.pm

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives