S
sakcee
hi
I am very newbie to perl , I have a file that have in it,
when I parse using xml::dom:arser, it is crashing on it, i assume
because parser can not take
 ,
when i replace with & , the parser accepts it but on
doc-->toString , it adds &
at every and I have to replace that & again with   to
make it look correct it html
also when i try replacing nbsp with   , it converts to some wierd A
character which I think is c2c0 or something , so html page in utf-8 is
not rendered properly and I see weird A'..
the html document is coded in utf-8, there is no xsl, and i have xml
input as a cgi input, it is not a file to i can not declare dtd
entities etc
is this correct approach? it is 2 regex replaces through whole input ,
which seems kind of expensive
thanks
I am very newbie to perl , I have a file that have in it,
when I parse using xml::dom:arser, it is crashing on it, i assume
because parser can not take
 ,
when i replace with & , the parser accepts it but on
doc-->toString , it adds &
at every and I have to replace that & again with   to
make it look correct it html
also when i try replacing nbsp with   , it converts to some wierd A
character which I think is c2c0 or something , so html page in utf-8 is
not rendered properly and I see weird A'..
the html document is coded in utf-8, there is no xsl, and i have xml
input as a cgi input, it is not a file to i can not declare dtd
entities etc
is this correct approach? it is 2 regex replaces through whole input ,
which seems kind of expensive
thanks