I have a problem with wx and python which seems to be a unicode one.

I'm using Portable python 2.7.2.1 and wx-2.8-msw-unicode.

My python code at the point of failure is this statement:

```
listbox.AppendText("\n  " + dparser.parse(t['created_at']).strftime('%H-%M-%S') + "    " +t['text'] + "\n")

```

> 
> t['text'] 
> 
> 
> has a value: 
>  "RT @WebbieBmx: “@AlexColebornBmx: <http://t.co/cN6zSO69>”watch this an #retweet"
> 
> 
> 

which when printed in the DOS window from which I'm running python displays as:

> 
> 'RT @WebbieBmx: \xe2\x80\x9c@AlexColebornBmx: <http://t.co/cN6zSO69>\xe2
>  \x80\x9dwatch this an #retweet'
> 
> 
> 

The traceback is:

> 
> Traceback (most recent call last): File "myprogs\Search\_db\_dev.py",
>  line 713, in onSubmit
>  self.toField.GetLineText(0)) File "F:\Portable\Portable Python 2.7.2.1\App\myprogs\process\_form2\_dev.py", l ine 575, in display\_Tweets
> 
> 
> 
> ```
>     listbox.AppendText("\n  " + dparser.parse(t['created_at']).strftime('%H-%M-%
> S') + "    " +t['text'] + "\n")
> 
> ```
> 
> File "F:\Portable\Portable Python
>  2.7.2.1\App\lib\site-packages\wx-2.8-msw-uni code\wx\_controls.py", line 1850, in AppendText
> 
> 
> 
> ```
>    return _controls_.TextCtrl_AppendText(*args, **kwargs)
> 
> ```
> 
> File "F:\Portable\Portable Python
>  2.7.2.1\App\lib\encodings\cp1252.py", line 1 5, in 
> 
> 
> 
> ```
> decode return codecs.charmap_decode(input,errors,decoding_table)
> 
> ```
> 
> UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position
>  73: chara cter maps to undefined
> 
> 
> 

The UnicodeDecodeError seems to occur at the end of the right double quotation mark (\xe2\x80\x9d) but I can't see why. I would be grateful for any help.

It may be a simple encoding problem, I'm afraid