Encoding woes

John Arbash Meinel john at arbash-meinel.com
Tue Jan 3 04:03:58 GMT 2006


Robert Collins wrote:
> On Mon, 2006-01-02 at 15:22 -0600, John Arbash Meinel wrote:
> 
>>Well your comment 'if it is an ascii only string, decode it as utf8'
>>is
>>a little misleading, since ascii is not utf-8.
>>How about: 'if it is a plain string, it is decoded as if it were
>>utf8'.
> 
> 
> Well yes :). I was adlibbing in email.
> 
> Other than that, how does that sound ?
> 
> Do we have a +1 on this ?
> 
> Are there any -1's ?
> 
> Rob
> 

Just to be sure I'm clear on what you are thinking...
Most interface level functions which take a string parameter are going
to pass it through safe_unicode, which ensures that it is a unicode
string, either by decoding it from utf-8, or by seeing that it is
already unicode.

I'm +1 with that.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060102/519d7e64/attachment.pgp 


More information about the bazaar mailing list