网站 | 支持中文命名 | 调试信息显示正确 | 测试语言 | 细节 |
---|---|---|---|---|
码农谷 | 是 | 是 | Java | 编译速度一般, 但对Java中文命名的支持最好 |
闪电编程 | 大部分 | 是 | Java | public类只能用英文命名, 非public类和方法/变量都支持 |
dooccn | 大部分 | 是 | Java | 同闪电编程 |
w3school.com.cn | 是 | 否 | JavaScript | 调试信息在浏览器控制台中, 中文字符显示的是unicode原码: \u4EBA is not defined |
jsfiddle.net | 是 | 否 | JavaScript | 同w3school |
IDEOne | 部分 | 否 | Java | 类名不能为中文: Runtime Error. 方法/变量可以. |
AnyCodes | 部分 | 否 | Java | 类名不能为中文: There must be a public class. Please check your code. 方法/变量可以. |
CodePad | 否 | 否 | C, Python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.nio.charset.StandardCharsets.UTF_8; | |
import java.io.UnsupportedEncodingException; | |
/** | |
* 问题复现: | |
文件编码为UTF-8 | |
控制台编码先为UTF-8: | |
$ javac -encoding utf8 EncodeIssue.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
public class UTF8_GBK { | |
public static void main(String[] args) throws UnsupportedEncodingException { | |
String 初始字符串 = "开始"; | |
byte[] 字节 = 初始字符串.getBytes("utf-8"); | |
System.out.println("转码前:" + encodeHex(字节)); | |
String 转编码后 = new String(字节, "GBK"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.Charset; | |
/** | |
* 原问题在 http://bbs.csdn.net/topics/390010852: | |
* 代码如下: | |
try | |
{ | |
PreparedStatement preStmt = con.prepareStatement("insert into t_bb(f_no,f_name) values(?,?)"); | |
preStmt.setString(1,"ABCDEFG"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gulp tests | |
[16:56:38] Requiring external module ts-node/register | |
[16:56:38] Using gulpfile ~/work/program-in-chinese/CHTypeScript/gulpfile.ts | |
[16:56:38] Starting 'built/local/lib.dom.d.ts'... | |
[16:56:38] Starting 'built/local/lib.dom.iterable.d.ts'... | |
[16:56:38] Starting 'built/local/lib.webworker.d.ts'... | |
[16:56:38] Starting 'built/local/lib.scripthost.d.ts'... | |
[16:56:38] Starting 'built/local/lib.es5.d.ts'... | |
[16:56:38] Starting 'built/local/lib.es2015.d.ts'... | |
[16:56:38] Starting 'built/local/lib.es2016.d.ts'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gulp runtests | |
[07:38:05] Requiring external module ts-node/register | |
[07:38:06] Using gulpfile ~/work/program-in-chinese/CHTypeScript/gulpfile.ts | |
[07:38:06] Starting 'build-rules'... | |
[07:38:07] Starting 'built/local/lib.dom.d.ts'... | |
[07:38:07] Starting 'built/local/lib.dom.iterable.d.ts'... | |
[07:38:07] Starting 'built/local/lib.webworker.d.ts'... | |
[07:38:07] Starting 'built/local/lib.scripthost.d.ts'... | |
[07:38:07] Starting 'built/local/lib.es5.d.ts'... | |
[07:38:07] Starting 'built/local/lib.es2015.d.ts'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export LC_ALL=zh_CN.gbk | |
xw@xw-Rev-1-0:~/workspace/checkstyle$ locale | |
LANG=zh_CN.UTF-8 | |
LANGUAGE=zh_CN:en_US:en | |
LC_CTYPE="zh_CN.gbk" | |
LC_NUMERIC="zh_CN.gbk" | |
LC_TIME="zh_CN.gbk" | |
LC_COLLATE="zh_CN.gbk" | |
LC_MONETARY="zh_CN.gbk" | |
LC_MESSAGES="zh_CN.gbk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
without change: | |
$ gcc --version | |
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 | |
$ gcc 你好.c | |
你好.c:10:1: error: stray ‘\351’ in program | |
void 问好(); | |
^ | |
你好.c:10:1: error: stray ‘\227’ in program | |
你好.c:10:1: error: stray ‘\256’ in program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import * as vscode from 'vscode'; | |
import { getWords } from './helpers'; | |
const ks = require('node-key-sender'); | |
// let config: vscode.WorkspaceConfiguration; | |
let words: any; | |
// let triggers: string[]; |