+ 1
Print Japanese
Can I print Japanese characters on Python using print()? If so how can I print them? I tried using the unicodes of the characters but it didnât work. For example, I tried using print(â\u3041â) to print ă, but it didnât work, it gave Error.
2 RĂ©ponses
+ 6
Perhaps what you use to view the output makes a difference? Are we sure that all interpreters/IDEs are capable of outputting Japanese characters?
+ 2
Did you attempt using the "\u[4 digit hexadecimal]" notation? If youâre not and youâre using "\U", well. Iâm not sure, as I use \u always. (I mean that literally.) If the characters for example, if you want to print the character "ă" (I cannot read Japanese, so if that is offensive, I am very, VERY sorry), you would type "print('\u3041')" (minus the double quotes, obviously.)