Unicode: Difference between revisions

From XPUB & Lens-Based wiki
(New page: ! Python !! unicode to str <source lang="python"> unicode.encode </source> !! str to unicode <source lang="python"> str.decode(format) </source>)
 
No edit summary
Line 1: Line 1:
== Python ==


! Python
=== unicode to str ===
 
!! unicode to str
<source lang="python">
<source lang="python">
unicode.encode
unicode.encode
</source>
</source>


!! str to unicode
=== str to unicode ===
<source lang="python">
<source lang="python">
str.decode(format)
str.decode(format)
</source>
</source>

Revision as of 12:14, 27 August 2008

Python

unicode to str

unicode.encode

str to unicode

str.decode(format)