On Wed, 2004-08-18 at 11:21, kevin wrote:
> Somewhat OT but the combination computer skills plus knowledge of Gaelic on
> this list could be just right.
>> I am developing an e-learning website on the Cornish language for a group
> based at Exeter University, the site is being developed in PHP.
>> Cornish uses some accents including t-cedilla in words such as
>> conveţhaz - Verb, to understand
>> I can write this using codes in UTF-8 like conveţhaz which can be saved
> to the MySQL database with no problems. However when I want to pass some
> cornish words from one page to another using:
>> $urlcode = urlencode($cornishword);
> echo "<a href=\"scripts/popup.php?cword=$urlcode\">test</a>";
>> When I use the above it works fine until I hit words like conveţhaz which PHP
> sees on the other side as conve with the rest chopped off. Any ideas?
>Hi Kevin,
The problem is the & in the word you're trying to submit, it's
being
parsed as a GET seperator. This doc page has a note on how to handle
this suggesting using & instead of & as the seperator. Then use
htmlentities(urlencode($data)) to encode your url fragment.
http://ie.php.net/manual/en/function.urlencode.php
Regards,
--
Stephen Brooks <stephen at lincor.com> 17 Dame Court
Software Engineer Dublin 2, Ireland
Lincor Solutions Ltd. Ph: +353 (0) 1 6746413
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!