Hello again :)

I updated FormFu again from cpan 0.03004, and now
utf8 is more consise, only the db part is
getting screwed, and all the time(last time
some pages were working others not).

The last message i said that removing the use
utf8(pt_br.pm) worked, but it only worked for some
pages only(all of them have utf8 stuff...). but now
the behavior is the expected.
Using use utf8 (pt_br.pm) the form validations, and
the normal text is displayed correctly. And adding:

__PACKAGE__->load_components(qw/UTF8Columns Core/);
__PACKAGE__->utf8_columns(qw/name description/);


to the bottom of my Shemas files made the utf8
coding be done right.

Thanks for the replies,
Daniel.




----- Mensagem original ----
De: Carl Franks <[EMAIL PROTECTED]>
Para: "HTML Form Creation, Rendering and Validation Framework" 
<html-formfu@lists.scsys.co.uk>
Enviadas: Terça-feira, 2 de Setembro de 2008 5:55:44
Assunto: Re: Res: [html-formfu] pt_br translation and some problens with .conf 
files

2008/9/1 Daniel Nicoletti <[EMAIL PROTECTED]>:
> Dude :P i'm going to kill myself :P
> if i remove use utf8 from my pt_br file
> i got accents and my form.conf strings don't
> get screw.. !!
> nuts isn't it?

Make you you're running HTML-FormFu svn r1169 or higher.
I've changed load_config_file() - so .conf files are decoded properly
- that should make a difference for you.

As HTML-FormFu-Manual-Unicode explains, you need to correctly decode
all unicode coming into your program - this includes:
    * from a db
    * from template files
    * from config files
    * user-submitted data from the browser
And encode all unicode data coming out of your program - this includes:
    * writing to the database
    * writing to the browser

If you miss any point - everything will break!
This is how unicode needs to be done in perl.
The easy way is just to follow all the instructions in
HTML-FormFu-Manual-Unicode.
For more details, read perlunitut.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu



      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua 
cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to