|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
encoding problemsHello all.
I had a problem which I belive it displayes a short-comming of cpaint. I set from the front-end the response type into text. Then from the back-end I set the data of the cpaint object ($cp->set_data(Some Greek Text..). The problem was that the text was not returned in the front-end. I thought of using the method set_enconding. This method however belongs to class cpaint_node. The solution was that I created a dummy node and used the node's set_encoding method. After that it worked fine. Since the cpaint object does have a set_data method, I think it should have a set_encoding as well (and I'd suggest that the encoding set by the cpaint's set_encoding should be used by default from the cpaint_node objects). The method start does accept an encoding but in this way I can not use a different encoding for each registered function. The method I propose is: function set_encoding($enc) { $this->basenode->set_encoding($enc); } Best regards. -- Three words describe our society:homo homini lupus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Cpaint-developers mailing list Cpaint-developers@... https://lists.sourceforge.net/lists/listinfo/cpaint-developers |
|
|
Re: encoding problemsThe backend uses UTF-8 encoding, which is essentially universal. Try
using UTF-8 as the content type of your frontend web page. Take a look at http://cpaint.net/examples/encoding/index.html. It's a demo where we show a few different character sets, including Greek. Thanks, Paul On 3/2/07, anakreonmejdi@... <anakreonmejdi@...> wrote: > Hello all. > I had a problem which I belive it displayes a short-comming > of cpaint. > > I set from the front-end the response type into text. > Then from the back-end I set the data of the cpaint object > ($cp->set_data(Some Greek Text..). > The problem was that the text was not returned in the > front-end. > > I thought of using the method set_enconding. This method > however belongs to class cpaint_node. > The solution was that I created a dummy node and used > the node's set_encoding method. After that it worked fine. > > Since the cpaint object does have a set_data method, > I think it should have a set_encoding as well (and I'd > suggest that the encoding set by the cpaint's set_encoding > should be used by default from the cpaint_node objects). > > The method start does accept an encoding but in this way > I can not use a different encoding for each registered function. > > > The method I propose is: > function set_encoding($enc) { > $this->basenode->set_encoding($enc); > } > > Best regards. > > -- > Three words describe our society:homo homini lupus > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Cpaint-developers mailing list > Cpaint-developers@... > https://lists.sourceforge.net/lists/listinfo/cpaint-developers > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Cpaint-developers mailing list Cpaint-developers@... https://lists.sourceforge.net/lists/listinfo/cpaint-developers |
| Free embeddable forum powered by Nabble | Forum Help |