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: Beginner: Re: [orange] convert utf8 -> iso-8859-2: Edit Log



7stud
Enthusiast

Jan 15, 2013, 11:45 PM


Views: 1485
Re: [orange] convert utf8 -> iso-8859-2


Code
use strict;  
use warnings;
use 5.012;

use Encode;

my $string = 'hello';
my $octets = encode("iso-8859-2", $string);

Works fine for me.


(This post was edited by 7stud on Jan 15, 2013, 11:48 PM)


Edit Log:
Post edited by 7stud (Enthusiast) on Jan 15, 2013, 11:46 PM
Post edited by 7stud (Enthusiast) on Jan 15, 2013, 11:47 PM
Post edited by 7stud (Enthusiast) on Jan 15, 2013, 11:47 PM
Post edited by 7stud (Enthusiast) on Jan 15, 2013, 11:48 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