Timeline for Unicode python Error
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 31, 2016 at 22:18 | comment | added | Nir Alfasi | Sorry I can't help you with Windows: my Win-machine is back at home and I'm at work... Anyways, glad you pinned the issue to the OS. The following might help: stackoverflow.com/questions/6344853/… | |
| Aug 31, 2016 at 22:15 | vote | accept | Brenda Martinez | ||
| Aug 31, 2016 at 22:15 | comment | added | Brenda Martinez | thanks for your effort , that was correct , i've test it in my VPS (ubuntu) and worked , Windows is the problem , i'm getting this kind of errors all the time :/ | |
| Aug 31, 2016 at 22:11 | comment | added | Nir Alfasi | Yes, you can see in the screenshot that it does. Maybe there's some encoding issue with your OS ? can you try a different computer in order to eliminate potential causes ? | |
| Aug 31, 2016 at 22:10 | comment | added | Brenda Martinez |
yeah exactly the same , i'm just trying #!/usr/bin/python # -*- coding: utf8 -*- print u"ệ" with no luck , the code works for you ?
|
|
| Aug 31, 2016 at 22:04 | comment | added | Nir Alfasi | @BrendaMartinez I've added a screenshot of PyCharm preferences - compare it to yours. | |
| Aug 31, 2016 at 22:04 | history | edited | Nir Alfasi | CC BY-SA 3.0 |
added 234 characters in body
|
| Aug 31, 2016 at 21:51 | comment | added | Brenda Martinez |
i've just installed pycharm UnicodeEncodeError: 'charmap' codec can't encode character u'\u1ec7' in position 13: character maps to <undefined> , and i'm using encoding declaration , Pycharm5
|
|
| Aug 31, 2016 at 21:47 | comment | added | Nir Alfasi |
@BrendaMartinez sublime is NOT an IDE - it's the same as Notepad++... You can check the default encoding settings of sublime by going to the menu: sublime text --> Preferences --> Settings - Default and then search for: default_encoding
|
|
| Aug 31, 2016 at 21:44 | comment | added | Brenda Martinez |
yeah for that i've tested sublimetext and i'm getting UnicodeEncodeError: 'charmap' codec can't encode character u'\u1ec7' in position 13: character maps to <undefined> if i just print "Pokémon" all good , "Việt" what causing the problem .
|
|
| Aug 31, 2016 at 21:41 | comment | added | Nir Alfasi | @BrendaMartinez well notepad++ is another problem :) use a proper IDE such as PyCharm: you'll get all the benefits of IDE such as debugging and inspection capabilities as well as many other goodies. | |
| Aug 31, 2016 at 21:39 | comment | added | Brenda Martinez | Utf-8 , notepad++ | |
| Aug 31, 2016 at 21:39 | comment | added | Nir Alfasi | @BrendaMartinez make sure that both your IDE encoding as well as the project encoding are set to 'utf-8' | |
| Aug 31, 2016 at 21:38 | comment | added | Andrea Corbellini | @BrendaMartinez: what encoding is your editor using? | |
| Aug 31, 2016 at 21:37 | comment | added | Brenda Martinez |
yeah try that also , it work if we just print u"pokémon" but not "Pokémon GO Việt Nam"
|
|
| Aug 31, 2016 at 21:32 | history | answered | Nir Alfasi | CC BY-SA 3.0 |