Tags » Unicode

How to write UTF-8 widestring to text VC++

find the reason why using wstring instead of string???

ofstream simply wont write wstring, forcing wofstream without codecvt will triger an SEHException (unmanaged code exeption). 81 more words

IT Stuff

[Python] unicode vs string

在做project時,要輸出tweet去做分析,遇到一堆奇怪的問題。

首先若無處理,讀進來的type就是str。

直接print也會看到已是utf-8格式。

要存成dictionary,可以先轉成unicode


tweet = tweet.decode('utf-8')

print tweet

當要輸出到file來查看狀況時,再轉回str。

f = open('dictionary.txt', 'w')

tweet = tweet.encode('utf-8')

f.write(tweet)

Python

The Fat Kids Have Spoken!

The Unicode Consortium recently posted this article outlining the emoji candidates that are most likely going to be released into our virtual world in 2015. Whats most interesting about this list is the “Most Popularly Requested” section which reads like a fat kids wedding reception menu: 82 more words

Big Star

Here Are The 37 Potential New Emojis Being Considered By Unicode

For all you folks out there who sigh when you just really need a taco Emoji (all of us), here is some good news: the… 208 more words

Features

Here Are The 37 Potential New Emojis Being Considered By Unicode

For all you folks out there who sigh when you just really need a taco Emoji (all of us), here is some good news: the… 219 more words

Features

Here Are The 37 Potential New Emojis Being Considered By Unicode

For all you folks out there who sigh when you just really need a taco Emoji (all of us), here is some good news: the… 198 more words

Features