Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks for the help but I'm still unable to get it to work even after adding the BOM, although I am learning along the way I'm now using both TextPad and NotePad++ (with plugin) to view the codes for the output file (accentTestOutput.xml). I've also run it on both my work and home pc's - both running Windows. After running the code provided by almut I'm still not seeing C3 A9 as the hex code for the e-acute. TextPad is displaying an E9 code and NotePad++ EF BF BD. It also looks as if the BOM is not there, I am unable to see the code EF BB BF at the start of the file (which is what I should see right?). Using the package UTF8BOM to insert the BOM I can see the BOM is there in both cases (TextPad and NotePad++) due to seeing EF BB BF at the start of the file. However both programs now display E9 as the code for the e-acute not the C3 A9 I'm looking for. Incidently at no point have I been able to open the output file in Internet Explorer, It complains of an invalid character at the point of the e-acute. Here's the output after trying to insert the BOM using print $fh "\x{feff}";TextPad
NotePad++
Here's the output after trying to insert the BOM using the UTF8BOM perl package using UTF8BOM->insert_into_file('c:\\accentTestOutPut.xml');You can see the BOM code at the begining of the file TextPad
NotePad++
I'm at the edge of what I know so don't really know where to go from here. I appreciate the help you given, any other ideas? If I've missed out some info that may be useful let me know. In reply to Re^4: XML:: DOM and Accented Characters
by freeflyer
|
|