'utf8' codec can't decode byte 0x92

5,180 views
Skip to first unread message

Anurag

unread,
Feb 2, 2012, 2:32:44 AM2/2/12
to Satchmo users
Every time there i am using words with apostrophe ( ' ) in any word
in my html blurb - i get the following error -

'utf8' codec can't decode byte 0x92 in position 2104: invalid start
byte

I am running satchmo 0.92 and django 1.3.1 on Windows.

Am i missing configuring any settings?

Anurag

Dave Brown

unread,
Feb 2, 2012, 7:25:57 AM2/2/12
to satchm...@googlegroups.com
Is your database encoded as UTF8? And are you sure its a 'normal' apostraphe?  For example, are you copy/pasting from a word document or entering from a keyboard?  (Typically thats when I pick up other encodings is from word doc's)

Dave
 


Anurag

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.




--
Dave Brown
CEO/Founder
Rampframe.com - Action Sports Network

hynekcer

unread,
Feb 2, 2012, 9:50:23 PM2/2/12
to Satchmo users
Anurag,
it can't decode it because \x92 is not from utf8 but from cp1252 or
cp1250 or similar windows encoding.
Never change default encoding which is utf8 and use an utf8 capable
editor for all customizing.

Satchmo supports all possible characters.
The character \x92 is not "apostrophe" but "right single quotation
mark".

Hynek

Anurag

unread,
Feb 4, 2012, 4:29:24 AM2/4/12
to Satchmo users
Thanks Dave and Hynek
Yes, i have been using sqlite (so assumed that i was utf8
compliant), but was copying and pasting from a word doc.
thanks a lot

Ángel Velásquez

unread,
Feb 2, 2012, 6:48:38 AM2/2/12
to satchm...@googlegroups.com
2012/2/2 Anurag <quie...@gmail.com>

Is your template file encoded in utf-8 ? .. (i really don't know how this works in Windows).

Anyway you can try the entity "&apos;" if you wanna solve the issue _quick_ .. but I do recommend you read some about encoding/decoding/unicode in python.

Cheers.

 

Anurag

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.




--
Ángel Velásquez
Jedi Master CTO
Bixti.com
an...@bixti.com
(00549)11.5980.7308
skype: angelvelasquez_ve
github: angvp

Reply all
Reply to author
Forward
0 new messages