Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: Regarding smarty_mb_str_replace
jrbeaure

Replies: 8
Views: 16483

PostForum: Smarty Development   Posted: Tue Dec 16, 2014 8:17 pm   Subject: Regarding smarty_mb_str_replace
The whole set of mb_* functions is one-sided and inherently flawed. I don't know, how you can call them "safer". The sole reason everyone's using them is because there seems to be no alterna ...
  Topic: Regarding smarty_mb_str_replace
jrbeaure

Replies: 8
Views: 16483

PostForum: Smarty Development   Posted: Fri Dec 12, 2014 6:23 pm   Subject: Regarding smarty_mb_str_replace
Ensuring the same character encoding (i.e. validating input) throughout is important (otherwise the code is inherently flawed), and there's a function for that which helps prevent invalid encoding att ...
  Topic: Regarding smarty_mb_str_replace
jrbeaure

Replies: 8
Views: 16483

PostForum: Smarty Development   Posted: Thu Dec 11, 2014 11:50 pm   Subject: Regarding smarty_mb_str_replace
Okay, so regarding str_replace compatibility with UTF-8:

One byte characters are encoded as 0xxxxxxx. This is backwards-compatible with ASCII.

Two byte characters are encoded as 110xxxxx 10xxxxx ...
  Topic: Regarding smarty_mb_str_replace
jrbeaure

Replies: 8
Views: 16483

PostForum: Smarty Development   Posted: Tue Dec 09, 2014 6:22 pm   Subject: Regarding smarty_mb_str_replace
What are the character encodings that Smarty should work with?

1. The str_replace function covers single-byte character encodings as well as UTF-8, and probably the other UTF encodings. (UTF scheme ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP