Ask Your Question
1

Windows 7 Console Unicode errors

asked 2015-02-27 12:05:26 -0500

updated 2015-02-27 18:00:32 -0500

smaffulli gravatar image

when I try to run glance from the command prompt in windows 7 I get this error. Is there a work around?

>echo %OS%
Windows_NT
>glance image-list
 'charmap' codec can't encode character u'\u2013' in position 976: character maps to <undefined>
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-02 13:00:20 -0500

alexpilotti gravatar image

Looks like a localization issue. Can you please run:

systeminfo.exe | findstr Locale

Sample output:

System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
edit flag offensive delete link more

Comments

Mine is the same: C:\Users\tbodine>systeminfo.exe | findstr Locale

System Locale: en-us;English (United States)

Input Locale: en-us;English (United States)

tbodine gravatar imagetbodine ( 2015-03-02 13:27:44 -0500 )edit

Ok so the work around was that nova image-list didn't have those pesky unicode characters in its output while glance did, but now that I've upgraded to nova 2.28.1 they appear, so now I can no longer list images in windows, fortunately there is an ubuntu machine I can use.

tbodine gravatar imagetbodine ( 2015-09-15 10:43:34 -0500 )edit
0

answered 2015-03-04 08:46:37 -0500

updated 2015-03-04 10:12:59 -0500

So I was thinking maybe if I changed the code page to something which hopefully has a mapping for u2013 I could solve my problem. So I tried 28591 ( ISO 8859-1) which I got from Code page List but according to this page Windows Code Pages It is actually 1252. So I ran the command to change the code page and the openstack command suddenly started working!


C:\Users\tbodine\Documents\CiscoStuff\Python>chcp 1252
Active code page: 1252

C:\Users\tbodine\Documents\CiscoStuff\Python>glance image-list
+--------------------------------------+----------------------------------------
-------------+-------------+------------------+--------------+--------+
| ID                                   | Name
             | Disk Format | Container Format | Size         | Status |
+--------------------------------------+----------------------------------------
-------------+-------------+------------------+--------------+--------+
| 1cd2e5a8-4f8d-4548-9d0c-61...
edit flag offensive delete link more

Comments

Looks like someone put the N'ko alphabetFa into the output stream for glance image-list

tbodine gravatar imagetbodine ( 2015-03-05 07:31:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-27 12:05:26 -0500

Seen: 916 times

Last updated: Mar 04 '15