Quote:
Originally Posted by DragonByte Tech
You misunderstand, I meant in the JS file.
If you wrap PHP.urlencode() around
Code:
fetch_object('vB_Editor_QR_textarea').value
it will work, as the screenshots demonstrate.
I don't know what charset you use on your development board since you say it works for you without PHP.urlencode(), but French and Norwegian characters are included in the ISO-8859-1 encoding so they don't require UTF-8 to work.
Hope that helps
Fillip
|
I've found hundreds of websites all discussing the issue of urlencoding in JavaScript and how there is no real match to the PHP function. They all go into these long winded functions in order to fix the problem, talking about issues of escaping etc... and not ONE of them mentions this PHP.urlencode function. In fact, I can't even find any documentation on the internet that this function exists... which is bizarre, since it clearly works. PHP and JavaScript can't even be used at the same time because PHP is server side and JavaScript is client side. So in order for this function to work, it has to exist in JavaScript. So I guess my next question is, WHY? Why do none of these other articles mention this function? What is the downside? Is there a performance issue? Backwards compatibility? It seems like such a simple fix, while escape() just creates more problems...
BTW, I use UTF-8... and many of the people who've I've convinced to switch to UTF-8 have all reported to me that their forums are faster than ever... I just recently had shoryuken.com switch over and even their users are happy about it.