I sometimes need to find a set of records via PHP/SQL with
non-English/extended characters fed to the query via a hyperlink.
For example, I have a navigation link on a site that tries to pass the
phrase "Gesundheit und Schönheit" via http with the extended character
(ö) correctly encoded as an HTML entity (ö)
However "Gesundheit und Schönheit" is not passed to my variable, only
"Gesundheit und Sch". I reckon the ampersand is causing trouble.
If correctly encoding extend chars as html entities isn't working for
what I want, how can I encode them for storage in XHTML or otherwise get
the result I want?
TIA,
Sean
non-English/extended characters fed to the query via a hyperlink.
For example, I have a navigation link on a site that tries to pass the
phrase "Gesundheit und Schönheit" via http with the extended character
(ö) correctly encoded as an HTML entity (ö)
However "Gesundheit und Schönheit" is not passed to my variable, only
"Gesundheit und Sch". I reckon the ampersand is causing trouble.
If correctly encoding extend chars as html entities isn't working for
what I want, how can I encode them for storage in XHTML or otherwise get
the result I want?
TIA,
Sean
Comment