sickmartian / quick_simplenote

Sublime Text 2 plugin for Simplenote
MIT License
11 stars 7 forks source link

Unicode SMP characters are not saved #17

Open yvt opened 9 years ago

yvt commented 9 years ago

Unicode SMP characters (U+1xxxx) including emojis are not preserved when a note is uploaded to the server.

Unicode SMP character 💦 (U+1F4A6) is shown correctly in ST: screen shot 2015-04-15 at 10 04 59 pm

However, when the note is uploaded to the server, 💦 is replaced with another character U+F4A6: screen shot 2015-04-15 at 10 04 15 pm (note: red exclamation mark is not Unicode SMP)

Using Sublime Text 2 (Build 2221).

sickmartian commented 9 years ago

Thanks a lot, I'm on vacation at the moment, but I will take a look when I get back.

On Wed, Apr 15, 2015 at 10:22 PM, Tomoaki KAWADA notifications@github.com wrote:

Unicode SMP characters (U+1xxxx) including emojis are not preserved when a note is uploaded to the server.

Unicode SMP character image: 💦 is shown correctly in ST: [image: screen shot 2015-04-15 at 10 04 59 pm] https://cloud.githubusercontent.com/assets/5253988/7159442/1c0a6a42-e3bd-11e4-8443-20fba60a3c93.png

However, when the note is uploaded to the server, [image: 💦] is replaced with another character U+F4A6: [image: screen shot 2015-04-15 at 10 04 15 pm] https://cloud.githubusercontent.com/assets/5253988/7159445/2353e9a4-e3bd-11e4-81e5-eb223b4ddc99.png (note: red exclamation mark is not Unicode SMP)

— Reply to this email directly or view it on GitHub https://github.com/sickmartian/quick_simplenote/issues/17.

sickmartian commented 9 years ago

Can only be reproduced in ST2

Also, ST3 handles it correctly on the title, while ST2 doesn't. Might not be related to the plugin exactly :(

screen shot 2015-04-28 at 9 15 16 am

When I get the text from the view using: view.substr(sublime.Region(0, 1)) I get back: u'\uf4a6' Instead I should get u'\U0001f4a6' back

On Thu, Apr 16, 2015 at 7:59 AM, Leonardo Rodriguez leuu86@gmail.com wrote:

Thanks a lot, I'm on vacation at the moment, but I will take a look when I get back.

On Wed, Apr 15, 2015 at 10:22 PM, Tomoaki KAWADA <notifications@github.com

wrote:

Unicode SMP characters (U+1xxxx) including emojis are not preserved when a note is uploaded to the server.

Unicode SMP character image: 💦 is shown correctly in ST: [image: screen shot 2015-04-15 at 10 04 59 pm] https://cloud.githubusercontent.com/assets/5253988/7159442/1c0a6a42-e3bd-11e4-8443-20fba60a3c93.png

However, when the note is uploaded to the server, [image: 💦] is replaced with another character U+F4A6: [image: screen shot 2015-04-15 at 10 04 15 pm] https://cloud.githubusercontent.com/assets/5253988/7159445/2353e9a4-e3bd-11e4-81e5-eb223b4ddc99.png (note: red exclamation mark is not Unicode SMP)

— Reply to this email directly or view it on GitHub https://github.com/sickmartian/quick_simplenote/issues/17.