In [1]:

sutf8="îÎâÂșȘțȚĂ€#¢"

Out[1]:

"\uee\uce\ue2\uc2\u219\u218\u21b\u21a\u102\u20ac#\ua2"

In [2]:

using HttpCommon

In [3]:

si = HttpCommon.encodeURI(sutf8)

Out[3]:

"%EE%CE%E2%C2%219%218%21B%21A%102%20AC%23%A2"

In [4]:

so = HttpCommon.decodeURI(si)

Out[4]:

"\uee\uce\ue2\uc2!9!8!B!A\x102 AC#\ua2"

In [5]:

print(so)

îÎâÂ!9!8!B!A2 AC#¢



I am using Julia 0.3.5 & HttpCommon 0.0.11 on a MacBook Pro retina, mac osx 
yosemite

this is a caption from JuliaBox, but I experience the same issue in the console 
or Lighttable


I am trying to upload data to OrientDB database via HTTP API, but upon encoding 
the data gets mangled and once on in the database it doesn't look right.

I have tried an online encoder/decoder site, their encoding is different: for 
the same input string their result is 
"%C3%AE%C3%8E%C3%A2%C3%82%C8%99%C8%98%C8%9B%C8%9A%C4%82%E2%82%AC%23%C2%A2". 
Upon uploading this to OrientDB the text is displayed in a correct manner.


Am I doing something wrong or is it a bug? I have searched for similar issues 
but I've found none.



Reply via email to