Euro symbol in GBK encoded Chinese language page

i have a page that is rendering words in Chinese characters. I am using the GBK encoding, and i am able to display and save Chinese characters successfully on my html page.

User input of the Euro symbol was successful, but there is a problem when saving it. When my Java server side code grabs the request, the form data has changed the euro symbol to a question mark.

Jon Skeet
people
quotationmark

Apparently there is no Euro symbol in GBK. For example, from the code page 936 wikipedia page:

The concept "CP936", "GBK" and "GB2312" are sometimes confused in various software products. Code page 936 is not identical to GBK because a code page encodes characters while the GBK only defines code points. In addition, the Euro sign (€), encoded as 0x80 in CP936, is not defined in GBK.

So basically, if you want to encode the Euro symbol, you should pick a different encoding. (Any reason you don't want to use UTF-8 or UTF-16? They may be less efficient, but at least you'll then be able to represent all Unicode characters...)

people

See more on this question at Stackoverflow