Re: UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-24 Thread Carlton Gibson


On Wednesday, 24 April 2019 02:19:32 UTC+2, Hyogeun Kim wrote:
>
>
> PS: I tested on my Mac and I got this error message "UnicodeDecodeError: 
> 'ascii' codec can't decode byte 0xe2 in position 9735: illegal multibyte 
> sequence" and It works as well with version 1.11 and 2.1 on Mac
>

Yes. OK. It will depend on your system locale. There was an implicit 
assumption of something using UTF-8. Either way resolved in 2.2.1. 

Please open a new ticket if something else comes up. 

Thanks! 
Carlton 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/18392f8a-4a3a-4dd1-a24d-adece942ff22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-23 Thread Hyogeun Kim
I think I have same problem like this 
https://code.djangoproject.com/ticket/30324, and I checked another Django 
version 1.11 and 2.1. and It works well.

thank you Carlton

PS: I tested on my Mac and I got this error message "UnicodeDecodeError: 
'ascii' codec can't decode byte 0xe2 in position 9735: illegal multibyte 
sequence" and It works as well with version 1.11 and 2.1 on Mac

2019년 4월 23일 화요일 오후 9시 57분 55초 UTC+9, Carlton Gibson 님의 말:
>
>
>
> On Tuesday, 23 April 2019 14:30:48 UTC+2, Carlton Gibson wrote:
>>
>>
>> What IS the right way of setting the locale on Windows...? 
>>
>
> Not sure if it's the only way but, on Windows 10 you can tick a "Use 
> Unicode UTF-8 for worldwide language support", box in "Region & Language" - 
> "Administrative" - "Change system locale" - "Region Settings".
>
> This has a "beta" label next to it... 
>
> After a reboot it adjusts `local.getpreferredencoding(False)` to 
> `cp65001`, which the internets tell me is UTF8, which is what you want I 
> think. 
>
> C.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/07300625-f7af-49b6-99e9-8d930473507c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-23 Thread Carlton Gibson


On Tuesday, 23 April 2019 14:30:48 UTC+2, Carlton Gibson wrote:
>
>
> What IS the right way of setting the locale on Windows...? 
>

Not sure if it's the only way but, on Windows 10 you can tick a "Use 
Unicode UTF-8 for worldwide language support", box in "Region & Language" - 
"Administrative" - "Change system locale" - "Region Settings".

This has a "beta" label next to it... 

After a reboot it adjusts `local.getpreferredencoding(False)` to `cp65001`, 
which the internets tell me is UTF8, which is what you want I think. 

C.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/60421d6e-793a-49c1-b972-cb955382fd33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-23 Thread Carlton Gibson


On Tuesday, 23 April 2019 14:27:24 UTC+2, Carlton Gibson wrote:
>
> If you set the `PYTHONIOENCODING` to utf8 before launching...
>

Not actually sure this is sufficient. What IS the right way of setting the 
locale on Windows...? 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/634f2e7f-9e07-4630-89db-0c61cf82373a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-23 Thread Carlton Gibson
This looks to be https://code.djangoproject.com/ticket/30324, which will be 
fixed by 2.2.1 next week. 
(Please open a new ticket with full details if it is distinct.) 

If you set the `PYTHONIOENCODING` to utf8 before launching Python you 
shouldn't this. (Or related unicode errors)

https://docs.python.org/3.7/using/cmdline.html#envvar-PYTHONIOENCODING

HTH
Carlton 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/fb967656-c067-4c03-ac42-90e040507c15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 9735: illegal multibyte sequence

2019-04-23 Thread Hyogeun Kim
Hi everyone

I got this error message "UnicodeDecodeError: 'cp949' codec can't decode 
byte 0xe2 in position 9735: illegal multibyte sequence" when I write some 
data on admin site with Django 2.2

This is simple database model like this

class Bookmark(models.Model):
url = models.URLField(max_length=500)
title = models.CharField(max_length=500)

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ed4ecef3-b714-4be0-a000-c32a95aebe6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.