Sugree

Main menu

  • About
    • Self
  • Project
    • jibjib
    • microblog-purple
    • Mitter
  • English
  • Thai

Unicode

Define unicode string in Python

Submitted by sugree on Thu, 12/27/2007 - 12:22.
  • Python
  • Unicode
  • Thai

เมื่อกี๊ได้รับการร้องขอให้อ่านข้อความแบบ unicode ให้ หน้าตาที่ให้มาเป็นแบบนี้

\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48

เห็นแล้วคิดในใจ "ง่ายโคตร" ใช้ Python ดีกว่า แต่ดันสมองตื้อกระทันหันไปทำแบบนี้

s = '\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48'
  • Add new comment
  • Read more

Popular Tags

Assumption BarCamp BarCampBangkok BarCampBangkok2 BarCampBkk2 Creature Drupal DrupalCamp DrupalCampBangkok Education Family Google Hardware Hardy Health Java JibCafe jibjib Joke NokNok OpenOffice.org Python Review SoC Social Network Trip TwittBKK TwittDay Twitter Ubuntu
more tags

Powered By

debian
apache
drupal
drupal.in.th
feedburner

© 2007-2008 Sugree Phatanapherom. Creative Commons [Feed Content / Comment]
RoopleTheme