Ticket #48 (closed Bug: fixed)

Opened 13 months ago

Last modified 13 months ago

German "umlaute" not send correctly in smscreator

Reported by: axel Owned by: axel
Priority: major Milestone: 1.5.7
Component: MySMS - Component Version: 1.5.x
Keywords: utf8 Cc:

Description

German "Umalaute" like äüö are not send correctly to the mobile phone.

Change History

Changed 13 months ago by axel

  • status changed from new to closed
  • resolution set to fixed

The problem was, that the Joomla request object JRequest returned all data utf8 encoded. This means that the rawurlencode method returns a diffrent string.

Example:

$body = JRequest::getVar('sms_body', );

echo 'utf8: ' . mb_strlen( $body ) . ' ' . rawurlencode( $body ) . '<br/>';

$body = utf8_decode( $body );

echo 'lanti1: ' . mb_strlen( $body ) . ' ' . rawurlencode( $body ) . '<br/>';

Note: See TracTickets for help on using tickets.