[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - guiserver not work UTF8 encoding

guiserver not work UTF8 encoding

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE

guiserver not work UTF8 encoding

Postby unya » Fri Aug 06, 2010 10:30 am

Attachments
allfont-demo.zip
(39.01 KiB) Downloaded 278 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Fri Aug 06, 2010 11:45 am

Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby unya » Mon Aug 09, 2010 7:15 am

Attachments
code-image.zip
guiserver.java
allfonts-demo.lsp
Image - no-file-encoding
Image - file-encoding
(170.56 KiB) Downloaded 300 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Mon Aug 09, 2010 3:47 pm

Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby unya » Tue Aug 10, 2010 2:15 am

I tried only Label/ListBox widget.
I'll check...

I tried your patch.
fontname can see(or read) on Windows Terminal, but it should not be see(or read) UTF8 fontname.
the guiserver returns MS932 fontname when java started without option.

P.S.
I've tried "System.setProperty("file.encoding", "UTF8")", NO EFFECT encoding this Java version.
In Java 1.6, "-Dfile.encoding" seems valid.
The Java(CJK) version of the "file.encoding" seems to have different behavior and treatment options.
Attachments
gsFonts-patch.zip
1-? : Java start without opt
2-? : Java start with -Dfile.encoding=UTF8
(249.6 KiB) Downloaded 285 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby unya » Tue Aug 10, 2010 8:06 am

Attachments
work-label.zip
Image
LabelWidget.java
guiserver.java
(63.78 KiB) Downloaded 279 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Tue Aug 10, 2010 2:59 pm

Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby unya » Wed Aug 11, 2010 2:16 am

Created for the Japanese version of the test "widget-demo-jp.lsp" Attach.

In addition, to add the image.
Russian and Japanese versions of the image,-Dfile.encoding = UTF8 is the result of running put.
Attachments
widgets-demo.zip
(105.57 KiB) Downloaded 290 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Wed Aug 11, 2010 11:57 am

Runs fine on Mac OS X 10.6 and UBUNTU Linux 10.4 under newLISP 10.2.8 and 10.2.12 and with all of the following mehods and without the gs:set-utf8 statement in widgets-demo-jp.lsp :

- newlisp widgets-demo-jp.lsp
- java -jar /usr/share/newlisp/guiserver.jar 47011 widgets-demo-jp.lsp
- start newLISP-GS from desktop icon, then load widgets-demo-jp.lsp

On Windows, I don't have the Japanese font installed, but the Russian version runs.

I wonder what is is with with either the MS932 font setting or some other specialty of your Windows installation, that it only works with java -Dfile.encoding=UTF8 on your system?

Perhaps other Japanese users (e.g. Johu ?) can help us with their experience?

In any case, many thanks for your help Unya.
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby johu » Wed Aug 11, 2010 2:57 pm

johu
 
Posts: 143
Joined: Mon Feb 08, 2010 8:47 am

Re: guiserver not work UTF8 encoding

Postby unya » Wed Aug 11, 2010 4:12 pm

unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Wed Aug 11, 2010 11:48 pm

Thanks Unya and Johu.

I have changed Base64Coder.java to include Unya's a encodeStringUTF8(String) and decodeStringUTF8(String) and all Widgets now use these and avoid String.getBytes():

http://www.newlisp.org/downloads/develo ... nprogress/

I hope in newlisp-10.2.13.tgz character encoding MS932 now works without -Dfile.encoding=UTF8

ps: updated newlisp-10.2.13.tgz, a few things were still missing
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby unya » Thu Aug 12, 2010 1:28 am

Thank you Lutz and Johu.

newlisp-10.2.13.tgz is working without -Dfile.encoding=UTF8.

I tried test delete "if (guiserver.UTF8) { ... }" from all Java source(base 10.2.12).

It's working without "-Dfile.encoding=UTF8".
Users can selectable Java running environment ,UTF8(with "-Dfile.encoding=UTF8") or System.Locale(without option).

java/*.java
guiserver.jar

added Dump.java for debug HexDump.
Attachments
java-10.2.12.zip
delete all "if (guiserver.UTF8) ..." 10.2.12 base
(98.35 KiB) Downloaded 304 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby Lutz » Thu Aug 12, 2010 11:26 am

Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: guiserver not work UTF8 encoding

Postby unya » Thu Aug 12, 2010 1:23 pm

thank you Lutz and Johu.
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: guiserver not work UTF8 encoding

Postby johu » Sat Aug 14, 2010 12:50 am

johu
 
Posts: 143
Joined: Mon Feb 08, 2010 8:47 am


Return to newLISP Graphics & Sound

Who is online

Users browsing this forum: No registered users and 1 guest

cron