Gossamer Forum
Home : General : Perl Programming :

Danish encoding :/

Quote Reply
Danish encoding :/
Hi,

I'm trying to do a Danish import from DMOZ, and converting it via Unicode::MapUTF8, using this code;

Code:
open (CONTENT,"/usr/home/buhuu.dk/cgi-bin/admin/content.rdf.u8.2") || die $!;
open (WRITEIT,">/usr/home/buhuu.dk/cgi-bin/admin/content.rdf.u8") || die $!;
while (<CONTENT>) {
if (/[\200-\377]/) {
s/([\200-\377]+)/from_utf8({ -string => $1, -charset => 'UTF-8'})/eg;
}
print WRITEIT $_;
}
close(WRITEIT);
close(CONTENT);

However, I can't seem to find a valid charachter encoding type, to convert to :/

TIA for any suggestions (i've checked the w3.org website, and a ton more, but am still no closer to finding the answer Frown).

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Danish encoding :/ Andy 5655 Oct 24, 2005, 4:50 AM
Post Re: [Andy] Danish encoding :/
Andy 5501 Oct 24, 2005, 11:51 PM
Thread Re: [Andy] Danish encoding :/
gotze 5453 Oct 29, 2005, 1:25 PM
Thread Re: [gotze] Danish encoding :/
Andy 5427 Oct 30, 2005, 4:22 AM
Post Re: [Andy] Danish encoding :/
Alba 5384 Nov 11, 2005, 5:50 AM