support Chinese characters?

support Chinese characters?

por yang ningyu -
Número de respuestas: 7
Can coderunner support Chinese characters? Test found that there are errors, please consult the solution, thank you!
test
En respuesta a yang ningyu

Re: support Chinese characters?

por Richard Lobb -
En respuesta a Richard Lobb

Re: support Chinese characters?

por 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

En respuesta a yang ningyu

Re: support Chinese characters?

por 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?

En respuesta a Richard Lobb

Re: support Chinese characters?

por yang ningyu -

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

33

En respuesta a yang ningyu

Re: support Chinese characters?

por 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?

En respuesta a Richard Lobb

Re: support Chinese characters?

por 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!