Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support UTF-8 ??
03-02-2016, 01:35 PM
Post: #4
RE: Support UTF-8 ??
Dear Tania,

Thank you for your respond, hope that next version DMelt IDE can support it.

BR,

(02-23-2016 01:32 PM)admin Wrote:  Hello,

Can you try to write a script, and run it as "dmelt_batch.sh"? This works for my example:

Put this to the file "file.py"

a = [0xE3, 0x81, 0x82]
print "".join([chr© for c in a]).decode('UTF-8')


Run it as "dmelt_batch.sh file.py". It prints: あ

Indeed, Jython shell in DMelt IDE does not support UTF-8.
But I'm quite sure Java IO can support Chinese characters:

Try this example inside DMelt:

s = "现在进入";
from java.lang import System
System.out.println(s)

(the output will go to System console)

best, Tania
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Support UTF-8 ?? - little7dragon - 01-30-2016, 04:32 PM
RE: Support UTF-8 ?? - little7dragon - 02-02-2016, 11:46 AM
RE: Support UTF-8 ?? - admin - 02-23-2016, 01:32 PM
RE: Support UTF-8 ?? - little7dragon - 03-02-2016 01:35 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)