Hi , I have a problem..
How can I get encoding for string which I retrieve from web or DB.

with hope to solution..

The database has the string in some encoding.
When a client program gets this string it is encoded in some way.

Try playing with the client encoding and python's str().encode-decode.

For encoding background http://www.joelonsoftware.com/articles/Unicode.html is a good start.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.