Skip to content

Commit 899209a

Browse files
committed
---IMPORTANT CHARACTER SET NOTE---
It is critical that all development work in Java2Script be done in UTF-8. This means: - making sure your Exclipse project is set up for UTF-8 (not the Eclipse default?) - making sure your server can serve up UTF-8 by default for any browser-loaded files - making sure you don't edit a Java2Script class file or one of the site .js files using a non-UTF-8 editor. It may replace non-Latin characters with "?" or garbage. In particular, the Mandarin character 秘 (mi; "secret") is used extensively throughout the SwingJS class files to distinguish j2s-specific fields and methods that must not ever be overridden by subclasses. As in java.lang.Thread.java: public static JSThread 秘thisThread;
1 parent d010462 commit 899209a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sources/net.sf.j2s.java.core/doc/Differences.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
Notes
22
=====
33

4+
---IMPORTANT CHARACTER SET NOTE---
5+
6+
It is critical that all development work in Java2Script
7+
be done in UTF-8. This means:
8+
9+
- making sure your Exclipse project is set up for UTF-8 (not the Eclipse default?)
10+
- making sure your server can serve up UTF-8 by default for any browser-loaded files
11+
- making sure you don't edit a Java2Script class file or one of the site .js files
12+
using a non-UTF-8 editor. It may replace non-Latin characters with "?" or garbage.
13+
14+
In particular, the Mandarin character 秘 (mi; "secret") is used extensively throughout
15+
the SwingJS class files to distinguish j2s-specific fields and methods that must not
16+
ever be overridden by subclasses. As in java.lang.Thread.java:
17+
18+
public static JSThread 秘thisThread;
19+
20+
21+
----------------------------------
22+
23+
424
updated 11/03/19 -- adds information about File.exists() and points to src/test/async
525
updated 10/26/19 -- adds information about File.createTempFile()
626
updated 8/16/19 -- minor typos and added summary paragraph

0 commit comments

Comments
 (0)