Hi,
I'm trying to do a Danish import from DMOZ, and converting it via Unicode::MapUTF8, using this code;
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
).
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!
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

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!