<div dir="ltr">Hi,<div><br></div><div>I deal with in Japanese (and sometimes other languages) in a lot of my programs, and nothing I do seems to work consistently on Windows systems. (OS X is no problem).</div><div><br></div>
<div style>I have followed steps in the Wiki, etc., but to little avail, so I have some questions for anyone who knows more than me:</div><div style>1. What encoding "should" I be writing to the terminal? from experimenting with text files using the cat command in powershell, it seems that local ("ANSI") encoding should be used. This makes sense since older versions of windows only supported local encodings.</div>
<div style>2. Is there any reason why writing out data in the local encoding (with write statements, etc.) should get corrupted? For example is some level of the RTL assuming something about the encoding? (I don't think so, but...)</div>
<div style>3. Is there a way to set the output to UTF8 so I can just write out UTF8 and be done with it?</div><div style><br></div><div style>Just to give an example:</div><div style>1. I read in an SJIS CSV file, and display it on the screen, and it's corrupted. </div>
<div style>2. I convert it to UTF8 before displaying it, and it's still corrupted. </div><div style>3.I cat the file to the screen and it's ok. </div><div style>4. I write the output to a file instead of the console, and it's ok.</div>
<div style><br></div><div style>Something seems odd.</div><div style><br></div><div style>Does anyone else have these issues?</div><div style><br></div><div style>Thank you,</div><div style> Noah Silva</div><div style>
<br></div><div style>p.s.: I know that the actual data in my programs isn't broken, because if I write it to a file or database, there is no problem with corruption.</div></div>