support Chinese characters?

support Chinese characters?

de către yang ningyu-
Număr de răspunsuri: 7
Can coderunner support Chinese characters? Test found that there are errors, please consult the solution, thank you!
test
Ca răspuns la yang ningyu

Re: support Chinese characters?

de către 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


Ca răspuns la Richard Lobb

Re: support Chinese characters?

de către 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

Ca răspuns la yang ningyu

Re: support Chinese characters?

de către 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?

Ca răspuns la Richard Lobb

Re: support Chinese characters?

de către yang ningyu-

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

33

Ca răspuns la yang ningyu

Re: support Chinese characters?

de către 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?

Ca răspuns la Richard Lobb

Re: support Chinese characters?

de către 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!