Skip to Content Skip to Menu

[SOLVED] CB auto action and utf-8

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 3 months ago - 4 years 3 months ago #319475 by activha
[SOLVED] CB auto action and utf-8 was created by activha
Hello,
I'm stuck with a simple thing regarding transferring data by url to an autoaction.

An example string to transfer is :
Code:
Crédit Agricole, 1re banque des particuliers... | Crédit Agricole

This is transferred to a url by something like :
Code:
?titlew=" . rawurlencode($title) . "

Then on the code autoaction I have :
Code:
$input = JFactory::getApplication()->input; $title = $input->get('titlew' ); $title = rawurldecode($title); echo $title;

But CB outputs is :
Code:
CrditAgricole1rebanquedesparticuliers...CrditAgricole

Can you tell me what I do wrong ?
Thanks
Last edit: 4 years 3 months ago by beat. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
4 years 3 months ago #319492 by beat
Replied by beat on topic CB auto action and utf-8
Joomla's $input->get() method has filter "cmd" by default, not "text", and removes non-command-like charcters, like spaces and non-US-ascii characters.

Code:
title = $input->get('titlew', null, 'text' );
will give you the result you expect.

P.S. Please note that this PHP/Joomla support is outside the scope of our developer support and is not part of our membership.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
4 years 3 months ago #319505 by activha
Replied by activha on topic CB auto action and utf-8
Thanks a lot
Didn’t think to this

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum