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

0

1 Answer 1

3

Use string filter instead of the default cmd filter:

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

Or:

JFactory::getApplication()->input->getString('myParam')
2
  • what do you mean with default cmd filter?
    – cilap
    Commented Sep 5, 2018 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
    Commented Sep 5, 2018 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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