I have tried (using your advice to use locale and lang) to write this 
string to file and I've got correct string. Therefore I think print 
function converts string depending on PYTHONIOENCODING which is not set 
under Apache.

четверг, 7 августа 2014 г., 11:57:31 UTC+4 пользователь Graham Dumpleton 
написал:
>
> Okay, this is starting to ring bells. Let me do some research.
>
> On 07/08/2014, at 5:48 PM, Dmitriy Chugunov <[email protected] 
> <javascript:>> wrote:
>
>
> May print function convert my string to something strange 
> if PYTHONIOENCODING variable is not set (apache doesn't set it, but under 
> wsgiref it is set)?
>
> четверг, 7 августа 2014 г., 11:43:07 UTC+4 пользователь Dmitriy Chugunov 
> написал:
>>
>>
>>
>> четверг, 7 августа 2014 г., 11:40:23 UTC+4 пользователь Graham Dumpleton 
>> написал:
>>>
>>> Lets go back a bit.
>>>
>>> You are using print() to output it with each?
>>>
>> Yes 
>>
>>>
>>> One you are viewing on stdout of terminal where wsgiref ran and other 
>>> you are viewing in Apache error log. Correct?
>>>
>> Yes 
>>
>>>
>>> What tool are you using to view the result in the Apache error log?
>>>
>>
>> tail -f /var/log/httpd/error_log
>>  
>>
>>>
>>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to