View previous topic :: View next topic |
Author |
Message |
rioxio n00b
Joined: 02 Jul 2018 Posts: 1
|
Posted: Tue Jul 03, 2018 8:53 pm Post subject: Difference output UTF-8 Gentoo and Ubuntu |
|
|
Hello. I want to ask the knowledgeable. Why the output of byte lines in consoles Gentoo and Ubuntu is different. When decoding from bytes to utf-8 is DecodeError. Locally, utf-8 is present. Maybe the problem in the interpreter is Python. Thank you in advance.
Gentoo
Code: |
b'\xa1\x9d\xebH+2\x95\xbf\x13\xd0e\xd9\xd0\xe82\xe7o\x86\xc6\xe9\xce\xf6\x81@}\xa8\xfc\xf7=\x13E\x93'
b'5\xb8\xac\xfc\x86\x083\xe5\x14\x91\xc5'
b'I\xfe\xfd\xa3w\x8et'
b'I\xed\xf1\xa1q\xb9p\xbdL\xcd\x91\x88'
b'3\xbe'
b'3\xb9'
b'1\xbc\xb1\xfc\x85\x08'
b'v\xe9\xef\xbc\xf4Pb\xbfI\x86\x95\x88i'
b'H\xed\xf2'
b'O\xed\xee\xa1\xd5S'
b'I\xe3\xeb\xa9\xd8Nh\xbf'
b'H\xed\xf2\xbd\xc7G'
|
Ubuntu
Code: |
b'74042503193'
b'Krak\xc3\xb3w'
b'Kami\xc5\x84skiego'
b'12'
b'15'
b'30-415'
b'test@mail.com'
b'Jan'
b'Marian'
b'Kowalski'
b'Janusz'
|
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed Jul 04, 2018 4:12 pm Post subject: |
|
|
If I understand correctly, you have a Python program and its output is different on Gentoo and Ubuntu machines?
Please show us the output of the 3 commands below on your Gentoo and on your Ubuntu server:
Code: | locale
locale -a
python -V -V
|
Can you also show us your Python program? Try to strip everything from it that is not required to show the problem - it would be best to have a small test program which has only a few lines. |
|
Back to top |
|
|
|