Re: updates

Mark Hatle <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Organization MontaVista Software, Inc.
Message-ID <[email protected]>
Even if they are utf-8 symbols, wouldn't it be better to use the &reg; 
and &trade; like in HTML?  This seems to be far more portable.

--Mark

Joe Shaw wrote:
> On Fri, 2003-10-24 at 11:40, Daniel Veillard wrote: 
> 
>>  Hum, seems that libxml2 error message got inserted at the beginning
>>of the XML result:
> 
> 
> Yeah, even removing that, though, I get this:
> 
> [joe@bacon joe]$ xmllint fedora-core-test2-metadata.xml
> fedora-core-test2-metadata.xml:10061: error: Input is not proper UTF-8,
> indicate encoding !
> 
> And it shows the registered mark and trademark lines (for some reason
> Evo won't paste them).
> 
> Anyway, they're the Latin-1 trademark symbols, not the UTF-8 ones. 
> (ASCII is a subset of UTF-8, but Latin 1 isn't)
> 
> In python (>= 2.1 anyway) you can encode string as UTF-8 by doing:
> 
> string = "blah blah ®" (some latin 1 encoded string)
> utf8_string = string.encode('utf-8')
> 
> and then write that out to the disk.
> 
> Joe
> 
> _______________________________________________
> Rpm-metadata mailing list
> [email protected]
> https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.