Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

non-standard characters being converted to question marks

Status
Not open for further replies.

miraclemaker

Programmer
Oct 16, 2002
127
GB
Has anyone seen anything like this before?

text that is submitted through a form on a page I'm working on can contain non-html standards compliant characters like:

'…' (elipse)
'`' (backticks)
'®' registered trademark symbol
etc

I want to be able to convert these characters to their proper html code, but when I print out the value from the post array all these characters have been replaced by question marks!

Very strange. Can anyone suggest anything?
 
if your are using the url to transmit the data maybe the urlecode and urldecode functions might work
 
I'm not, the data is being posted.

I think the problem is being caused by the default character-set of my html client (in this case Opera), as I don't have the problem in IE.
 
Yes, it is the default character set... are you sending completely well formed HTML? As in, are you including the content-type=... header?

You're asking to use characters above the 128 standard ascii characters, there are a slew of different character sets up there, hence you need to define one.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top