|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
redl Smarty Rookie
Joined: 10 Jun 2015 Posts: 9
|
Posted: Mon Jun 15, 2015 11:58 am Post subject: |
|
|
U.Tews wrote: | I did not use str_split as it could result in a larger $arr1 array. |
You also need to change this code:
Code: |
$content = substr($content, 8);
|
because "8 chars != 8 bytes" when dealing with a multi-byte encoded string |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Jun 15, 2015 10:12 pm Post subject: |
|
|
The code has been changed to AnrDaemon's suggestion.
That does solve all problems. |
|
Back to top |
|
redl Smarty Rookie
Joined: 10 Jun 2015 Posts: 9
|
Posted: Tue Jun 16, 2015 7:05 am Post subject: |
|
|
U.Tews wrote: | The code has been changed to AnrDaemon's suggestion.
That does solve all problems. |
Fine. This is a very nice solution. Thanks to you and AnrDaemon |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|