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

a multichar problem...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
joyehsu
Smarty n00b


Joined: 22 Apr 2004
Posts: 1

PostPosted: Thu Apr 22, 2004 12:29 pm    Post subject: a multichar problem... Reply with quote

Hi! My problem is when i try to pass a chinese word
from a tpl file to another, it's output is not an expected one..
and the word i passed contains a escape character '\',
this might be why it happened...

(* test.tpl *}
{include file="ex.tpl" title="功"}

{* ex.tpl *}
<html>
<head>
<title>{$title}</tite>
</head>

i think the problem might be the php regex functions that smarty uses
don't support multi-character like chinese big5,maybe it would be a
good point to work hard at since it might happen to the worldwide who
uses multi-character charset as well...
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Apr 22, 2004 4:45 pm    Post subject: Reply with quote

Hi. The problem is that PHP itself is not multibyte safe nor was it produced with that intention. I know that recent efforts have made PHP more usable for multibyte users, but my understanding is that special steps must be taken so that converstion is made of your character sets to an appropriate format that PHP can handle (see mbstring at php.net). I believe that the current issue of php|a at http://www.phparch.com has a feature story covering internationalization issues using Smarty.

Good Luck!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP