kice commented on issue #4569: Some Windows and MSVC fixes
URL: https://github.com/apache/incubator-tvm/pull/4569#issuecomment-568685746
 
 
   I assume that everytime the byte array we feed `py_str` comes from different 
program, which might have different encoding.
   
   The most common encoding just happend to be `utf-8` and defalut local system 
encoding.
   
   For an uncommon situation, a program compiled under Japanese Windows and 
being executed on Chinese Windows might not display correctly, if it uses 
non-ascii (e.g. Chinese or Japanese) character. 
   In addition, for this case, the codec retrieved from `GetACP()`, which is  
Chinese default encoding ( or `GBK`) cannot decode the string (encoded by 
`Shift-JIS`) either. The only thing we can do is to test what encoding it uses 
~or ask the author to recompile the program with utf-8~.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to