« Return to Thread: Re: Accepting curly quotes from McWord in textareas

Re: Accepting curly quotes from McWord in textareas

by bilcorry :: Rate this Message:

Reply to Author | View in Thread

Todd Vainisi wrote on 7/9/2009 9:55 AM:
> The pre-db output is still fine.  Its only the
> encode_html(field('thestring')) output that has the bad chars.  Where is
> my missing step?

You didn't mention if the character is being correctly stored in the db -- so it could be it's corrupted on the way to the db, or it could be it's corrupted on the way back from the db, or both.

So take a look at the db using a tool other than Lasso, does it look correct?  If you manually enter the correct char into the db using a tool other than Lasso, does Lasso then display it properly?

One thing to try first: change your insert inline to this, does it then work?

        if($text->Size);
        inline(-database="curricul_wordchars", -table="wordchars", 'thestring'=$text, -add);
                if(error_code != 0);
                        'Error: ' + error_msg;
                        abort;
                /if;
        /inline;
        /if;



- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


 « Return to Thread: Re: Accepting curly quotes from McWord in textareas