Get/Set Encoding value 2003-06-18 - By Rob Outar
I have to write a program that will fetch the encoding information from XML files:
<?xml version="1.0" encoding="UTF-8"?>
and verify that all encoding is set to UTF-8, my early trials using SAX has not worked, I thought it was a preprocessing instruction but I did not get the callback for my test files. Is there an easy way to fetch and possibly update the encoding value?
Thanks,
Rob
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD> <BODY> <P><FONT size=2>I have to write a program that will fetch the encoding information from XML files:<BR><BR><?xml version="1.0" <FONT color=#ff0000>encoding="UTF-8"?></FONT><BR><BR>and verify that all encoding is set to UTF-8, my early trials using SAX has not worked, I thought it was a preprocessing instruction but I did not get the callback for my test files. Is there an easy way to fetch and possibly update the encoding value?<BR><BR>Thanks,<BR><BR>Rob </FONT></P></BODY></HTML>
|
|