support Chinese characters?

support Chinese characters?

von yang ningyu -
Anzahl Antworten: 7
Can coderunner support Chinese characters? Test found that there are errors, please consult the solution, thank you!
test
Als Antwort auf yang ningyu

Re: support Chinese characters?

von Richard Lobb -

It sounds like your Jobe server has not been set up for UTF-8 characters. See https://github.com/trampgeek/jobe/blob/master/README.md#setting-the-locale


Als Antwort auf Richard Lobb

Re: support Chinese characters?

von yang ningyu -

Richard Lobb, thank you very much. UTF-8 has been modified, but the error still appears. As a beginner, I don't know where the problem is, ask for help!
11

22

Als Antwort auf yang ningyu

Re: support Chinese characters?

von Richard Lobb -

The machine's locale might be en_US.UTF-8 but is Apache set to use that? If you look at the file /etc/apache2/envvars on the Jobe server, you should be able to find a line beginning

export LANG=  

What's the rest of that line?

Als Antwort auf Richard Lobb

Re: support Chinese characters?

von yang ningyu -

Thank you very much for your reply! Are my settings correct?

33

Als Antwort auf yang ningyu

Re: support Chinese characters?

von Richard Lobb -

It does seem odd that your machine locale is US (United States) but you've set Apache to NZ (New Zealand). I'd have expected both to be the locale of your home country. Is the NZ locale even installed on that machine?

I suggest setting the Apache locale to the same as the machine locale. Does that change anything?

Als Antwort auf Richard Lobb

Re: support Chinese characters?

von yang ningyu -

Hi, Richard Lobb, thank you again! When I set it to: export lang = c.utf-8, I run the program perfectly. I'm very sorry to have wasted so much of your time. Thank you!