python application locale.setlocale


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
There are two hosts, one server with Ubuntu 10.04, one with Linux Mint 8 Rosinka.
There is a python script, parcasi html GETом transmitting data in the form and so on.
On a host with Ubuntu, the script works on the host with the Mint, because of fraud with Cyrillic characters somehow do not work anymore.
The only important (IMHO) difference between host — locale:
LANG=en_us.UTF-8 — Mint
LANG=en_US.UTF-8 on Ubuntu
Tried adding in the script on mint
import locale
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
,
but no avail.
In Python no expert, chose it for the script just for the sake of interest. Barely won the Cyrillic alphabet on ubuntista a server, and then continue this fakap...
Maybe someone faced with similar?
by | 5 views

1 Answer

0 like 0 dislike
The script, then the curve, and the right thing to fix it, what symptoms to treat. This is absolutely not normal, when the script depends on the system locale, this is an obvious bug.
\r
But even if "in Python no expert, chose it for the script just for the sake of interest.", I don't know what to advise.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Apr 3, 2019 by Csklassami
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,213 users