[Tutor] UTf-8 to Entity

mailing list ml.cyresse at gmail.com
Sat Aug 20 03:31:30 CEST 2005


You'll need the csv module. And that should be about it, I think. The
rest would just be using string methods.

On 8/15/05, Diaz, Wendell <w.diaz at spitech.com> wrote:
>  
>  
> 
> Hey guys, 
> 
>   
> 
> Hope you can help me on this. 
> 
>   
> 
> I want to make a python program which opens an XML (UTF-8 encoding) and do a
> search & replace. It will search the Unicode and replace them with their
> equivalent entity name. The program will read a look-up table (a tab
> delimited text file) which list the unicodes that needs to be replace with
> enity names. 
> 
>   
> 
> Example of the look-up table: 
> 
>   
> 
> &nobreakspace; [tab] 000A0 
> 
>   
> 
> Thanks in advance, 
> 
>   
> 
> Wendell 
> 
>   
> 
>   
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 
>


More information about the Tutor mailing list