openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

How to select a language

Open NDS308229535 opened this issue 2 years ago • 1 comments

hello,How to support Chinese? Are there any settings? I want to input Chinese

NDS308229535 avatar Mar 08 '23 10:03 NDS308229535

See issue #122 (which you commented on).

I just took the text from that issue and submitted it as utf-8 and it responded on the appropriate language and encoding. Maybe there is something in your environment?

cryptoapebot4.0
: 为什么不能使用中文
cryptoapebot4.0
06:38
CryptoApeBot responses are for entertainment purposes only. You should not construe any such information or other material as legal, tax, investment, financial, or other advice.

空" 1.中文“空”不是一个计算机语言,它是人们在日常对话中使用的一个字眼。而“null”则是某些编程语言中代表某个变量或数据类型不存在或者为空的特殊标志。...

Most modern Java versions should handle the default Locale.

Locale locale1 = new Locale("zh", "CN");
Locale locale2 = new Locale("zh", "TW");
Locale.setDefault(Locale.CHINA);

cryptoapebot avatar Mar 08 '23 14:03 cryptoapebot