[Catalyst] utf-8 problems
Hi, I'm having some problems with utf-8 and was hoping someone could point me in the right direction. I've two machines and I just copied (scp:ed) from the one I've been playing around with to my other and then all my umlaut characters, when being inserted to the template by perl, like $c-stash-{umlaut} = 'ö' or when fetching data from the database containing ö. The ö itself is displayed correctly but all ö:s in the template gets garbled. If I don't do anything ö-related in the code the templates looks just fine, including their own ö:s. The thing that really confuse me is that it works fine on the machine I copied it all from. It's two different debian versions, stable on the non-working and unstable on the working. I've got the same catalyst packages though and both have the same locales installed. I've also tried the same data source on the broken I'm using on the working and it's giving the same result. I've been really careful trying to have the utf-8 work so I: In V::TT: ENCODING = 'UTF-8' in M::DB mysql_enable_utf8 = 1, on_connect_do = [ SET NAMES 'utf8', SET CHARACTER SET 'utf8', ], in MyApp.pm: use Catalyst qw/ .. Unicode /; and I've tried with and without use encoding 'utf8'; All my modules are utf-8 encoded and use utf8 if they have strings with umlauts in them, all my templates are utf-8, the mysql-data is too and the response headers from apache says Content-Typetext/html; charset=utf-8. Anyone got a clue what could be the problem? Thanks Jon ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [OT] ASP.NET MVC
--- Jonathan Rockway [EMAIL PROTECTED] wrote: On Wed, 2007-12-12 at 09:18 +0200, Octavian Rasnita wrote: Hi, I haven't read anywhere that : Local is deprecated, and I use it very often. Why is it deprecated? I found it works very well, and it is the most simple solution. Who told you this? It's not. Local is theoretically a special case of chained (not implemented that way, but it could be)... Feel free to use Local if it meets your needs. Regards, Jonathan Rockway The error originate with me, I saw on IRC sometime ago a poster being told to stay away from :Local and to prefer :Path instead. Maybe it was for a particular usage, but the impression I received was that although not official deprecate it was not considered a good practice. Thank you for correcting the error. As to your comment about :Local being a special case of Chaining, if you could talk to that I'd appreciate it. I didn't understand that :Local would dispatch through multiple controllers... but maybe I didn't get the gist of your thought. Could you clarify what you meant my that? Because when I encounter people new to Catalyst and getting interested, it seems like the confusion about what type of Action Attribute to use and how to arrange controllers is a big barrier. I know it might seem like a bit of a silly thing to get stuck on, but I know of two people that gave up on Catalyst because it seemed to them to be too many ways to do a very straightforward and simple thing, such as map a URI to a controller, while potentially capturing path arguments. My original comment that started this was how I noticed the Microsoft MVC framework they are distributing is using a standalone dispatching class to build up a URI dispatcher. I've noticed in all my MVC research over the past year that this model is very common. Catalyst is doing things a little different here and I think there is power to our model, but confusion as well. So I was hoping to generate some discussion about that and maybe it could lead to a wiki page or POD or something to give newbies a little guidance as well as offer some general advantages to the Catalyst system. --john Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [OT] ASP.NET MVC
Good afternoon, On 12/12/07 at 2:42 AM -0600, Jonathan Rockway [EMAIL PROTECTED] wrote: On Wed, 2007-12-12 at 09:18 +0200, Octavian Rasnita wrote: I haven't read anywhere that : Local is deprecated, and I use it very often. Why is it deprecated? I found it works very well, and it is the most simple solution. Who told you this? It's not. On 11/12/07 at 7:59 AM -0800, John Napiorkowski [EMAIL PROTECTED] wrote: Then we also have :Local, which is also considered somewhat deprecated in favor of :Path, :Default which I was confused too and wondered why I should stop using :Local. Charlie -- Charlie Garrison [EMAIL PROTECTED] PO Box 141, Windsor, NSW 2756, Australia O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/