3

how can I get the full url parameter with the url-encoded values

?myParam=dummy%C3%B6%C3%A4%C3%BC

this is the decoded url:

?myParam=dummyöäü

if I use

$myText = urldecode(JFactory::getApplication()->input->get('myParam'));

the encoded or directly entered umlauts are missing in my var myText

3

Use string filter instead of the default cmd filter:

JFactory::getApplication()->input->get('myParam', '', 'string')

Or:

JFactory::getApplication()->input->getString('myParam')
  • what do you mean with default cmd filter? – cilap Sep 5 '18 at 11:06
  • 1
    When no filter is specified, cmd is used. So $input->get('myParam') equals $input->get('myParam', null, 'cmd'). It strips out characters such as umlauts. – Sharky Sep 5 '18 at 11:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.