Re: Cjs stripping non-unicode compatible

2006-08-29 Thread RosSoft

fixed in last version. Download it from cakeforge snippets


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cjs stripping non-unicode compatible

2006-08-28 Thread sicapitan

Hmm even with adding in this line into ajax.thtml layout it still comes
up.  Everything comes out as  still.  I thought it was my locale
__('keyword') causing it, but when I removed it and manually put in the
chinese characters they still come out as ???.  Is Cjs stripping my
unicode, or, is the Element.Updater(_elem, unescape() ruining my
strings?

Here is my POST dump from firebug:

Date: Mon, 28 Aug 2006 06:36:56 GMT
Server: Apache/2.0.55 (Unix) PHP/5.1.4 DAV/2 mod_ssl/2.0.55
OpenSSL/0.9.7i
X-Powered-By: PHP/5.1.4
Set-Cookie: CAKEPHP=6203dd4e212235f70d7ad00a07729493; expires=Mon, 04
Sep 2006 06:36:56 GMT; path=/eApproval/
Content-Length: 2737
Connection: close
Content-Type: text/html;charset=UTF-8


script type=text/javascript
_elem=$('header');
Element.update(_elem,unescape(%3Cdiv%20id%3D%22header_content%22%3E%0A%09%3Cdiv%20id%3D%22header_left%22%3E%0A%3Cdiv%20id%3D%22language%22%3E%0D%0A%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Fen_gb%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Fen_gb.png%22%20alt%3D%22Change%20to%3A%20UK%20English.%22%20title%3D%22Change%20to%3A%20UK%20English.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Ffr_fr%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Ffr_fr.png%22%20alt%3D%22Change%20to%3A%20UK%20English.%22%20title%3D%22Change%20to%3A%20UK%20English.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3Ca%20href%3D%22%2FeApproval%2Flanguages%2Fchange%2Fcn_cn%22%20%3E%3Cimg%20src%3D%22%2FeApproval%2Fimg%2Flocale%2Fcn_cn.png%22%20alt%3D%22Change%20site%20locale%20to%20Chinese.%22%20title%3D%22Change%20site%20locale%20to%20Chinese.%22%20style%3D%22border%3A%200px%3B%22%20%2F%3E%3C%2Fa%3E%3C%2Fdiv%3ENot%20logged%20in.%0A%3C%2Fdiv%3E%0A%3Cdiv%20id%3D%22header_right%22%3E%0A%3Cfont%20size%3D%2216%22%3E%20%3C%21--%20%3F%3F%3F%3F%20--%3E%20%3C%2Ffont%3E%0A%3C%2Fdiv%3E%0A%3C%2Fdiv%3E));
_elem=$('dynamic_menu'); Element.update(_elem,unescape());
_elem=$('main_content');
Element.update(_elem,unescape(%3Cdiv%20id%3D%22boxed_dk_ex%22%3E%0A%3Cform%20onSubmit%3D%22return%20false%3B%22%3E%0A%09%3Clabel%20for%3D%22username%22%3E%3F%3F%3F%3F%3C%2Flabel%3E%0A%09%3Cinput%20name%3D%22data%5BUser%5D%5Busername%5D%22%20%20size%3D%2220%22%20class%3D%22textbox_required%22%20value%3D%22%22%20type%3D%22text%22%20id%3D%22UserUsername%22%20%2F%3E%3Cbr%20%2F%3E%0A%0A%09%3Clabel%20for%3D%22password%22%3E%3F%3F%3C%2Flabel%3E%0A%09%3Cinput%20name%3D%22data%5BUser%5D%5Bpassword%5D%22%20%20size%3D%2220%22%20class%3D%22textbox_required%22%20value%3D%22%22%20type%3D%22text%22%20id%3D%22UserPassword%22%20%2F%3E%0A%09%3Cinput%20type%3D%22submit%22%20value%3D%22%3F%3F%26rarr%3B%22%20id%3D%22submit294069164%22%20onclick%3D%22return%20false%3B%22%20%2F%3E%3Cscript%20type%3D%22text%2Fjavascript%22%3EEvent.observe%28%22submit294069164%22%2C%20%27click%27%2C%20function%28event%29%7B%20new%20Ajax.Updater%28%27main_content%27%2C%27%2FeApproval%2Fusers%2Flogin%27%2C%20%7Basynchronous%3Atrue%2C%20evalScripts%3Atrue%2C%20parameters%3AForm.serialize%28Event.element%28event%29.form%29%2C%20requestHeaders%3A%5B%27X-Update%27%2C%20%27main_content%27%5D%7D%29%20%7D%2C%20false%29%3B%3C%2Fscript%3E%3C%2Fform%3E%0A%3C%2Fdiv%3E));
_elem=$('header'); new Effect.Appear(_elem,[])
_elem=$('dynamic_menu'); new Effect.Appear(_elem,[])
_elem=$('main_content'); new Effect.Appear(_elem,[])
/script!-- 0.1647s --


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cjs stripping non-unicode compatible

2006-08-09 Thread sicapitan

Cajax


anyone

UTF-8

guess not :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cjs stripping non-unicode compatible

2006-08-09 Thread RosSoft

mm...try putting header(Content-type: text/html; charset=utf8) in
your ajax.html layout (or something like this, I don't have the code
here)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Cjs stripping non-unicode compatible

2006-08-08 Thread sicapitan

I'm populating multiple divs with Cjs templates, and im getting a lot
of ??? ??? ?? in place of my unicode characters.  Normal ajax-link
stuff works fine so I am wondering if somewhere in cjs it strips out
unicode characters unintentionally?

if not then it is something else :-)

any help appreciated
sicapitan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---