The following warnings occurred:
Warning [2] Trying to access array offset on value of type null - Line: 4475 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 4475 errorHandler->error
/inc/class_session.php 505 my_strlen
/inc/class_session.php 360 session->create_session
/inc/class_session.php 75 session->load_guest
/global.php 55 session->init
/printthread.php 17 require_once
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined array key 4 - Line: 184 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 184 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Undefined array key "canonlyviewownthreads" - Line: 78 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 78 errorHandler->error
Warning [2] Undefined array key "page" - Line: 86 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 86 errorHandler->error
Warning [2] Undefined variable $multipage - Line: 24 - File: printthread.php(163) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/printthread.php(163) : eval()'d code 24 errorHandler->error
/printthread.php 163 eval



jWork.ORG forums
Support UTF-8 ?? - Printable Version

+- jWork.ORG forums (https://jwork.org/forum)
+-- Forum: DataMelt (/forumdisplay.php?fid=1)
+--- Forum: Discussion of new DataMelt features (/forumdisplay.php?fid=4)
+--- Thread: Support UTF-8 ?? (/showthread.php?tid=81)



Support UTF-8 ?? - little7dragon - 01-30-2016 04:32 PM

Can this software support to you utf-8 ?

I use:
from org.python.core import codecs
codecs.setDefaultEncoding('utf-8')

and can't correct display Chinese(utf-8)
and went I edit a .py file in the build-in txt editor,
can type chinese...just become the garble words.


RE: Support UTF-8 ?? - little7dragon - 02-02-2016 11:46 AM

Any one can help?
Will this tool support unicode and UTF-8 input & output??

thanks,


RE: Support UTF-8 ?? - admin - 02-23-2016 01:32 PM

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


RE: Support UTF-8 ?? - little7dragon - 03-02-2016 01:35 PM

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