Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
Find it. titles = "'"+titles.replace('|', "','")+"'" with: SCRIPT(" ... jQuery.prettyPhoto.open(**images=%(images)s,titles=[%(** titles)s]);})" % dict(images=images, titles=titles), _language='javascript') works! Tested on Firefox and Safari. Though I've failed to find any references on this (th

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Derek
Right, I was asking what the page shows as the character set. I was not so good at asking for what I wanted. On Tuesday, March 27, 2012 11:28:37 AM UTC-7, miguel wrote: > > > No dia 27 de Mar de 2012 17:41, "Derek" escreveu: > > > > What's the character set in your browser? > > > I have safari s

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 17:46, "Derek" escreveu: > > Check the meta tag - if it's UTF-8, that's most likely the issue. You can try ISO-8859-1 and see if that works for you. > Txs. Will also check that.

Re: [web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 17:41, "Derek" escreveu: > > What's the character set in your browser? > I have safari set for default. But I don't think that's the problem, because if I hardcode the string there is no problem. I'm certainly missing something, but the culprit operation seems to be the st

[web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Derek
Sorry, I am slow today. your "meta charset" tag in your layout - it's in the header. If it's UTF-8, it's wrong. On Tuesday, March 27, 2012 10:46:27 AM UTC-7, Derek wrote: > > Check the meta tag - if it's UTF-8, that's most likely the issue. You can > try ISO-8859-1 and see if that works for you

[web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Derek
Check the meta tag - if it's UTF-8, that's most likely the issue. You can try ISO-8859-1 and see if that works for you. On Tuesday, March 27, 2012 10:41:53 AM UTC-7, Derek wrote: > > What's the character set in your browser? > > On Tuesday, March 27, 2012 9:13:14 AM UTC-7, miguel wrote: >> >> Th

[web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Derek
What's the character set in your browser? On Tuesday, March 27, 2012 9:13:14 AM UTC-7, miguel wrote: > > This is not strictly a web2py issue. Though it is a problem that apps > dealing with some character sets must deal with. > I confess that the source of my problem is that I have been delaying

[web2py] Re: problem with encoding in javascript from the server

2012-03-27 Thread Miguel Lopes
No dia 27 de Mar de 2012 16:13, "Miguel Lopes" escreveu: > > > BTW this is a prettyPhoto widget I developed for plugin_wiki, which is awesome :-) > I mean plugin_wiki is awesome :-) lol