Menu

#2 Problems with special characters suc as ń ç €

closed
nobody
None
5
2012-10-05
2005-08-03
Anonymous
No

I'm working with cpaint but i have a problem when i
data sent in the XML has an special character such as ń
ç € or accents á, ŕ ...

Cpaint doesn't detect results in the XML when has this
special characters, it say that
results.AJAXRESULT.length is 0.

Can you help me, with this problem?

Regards,

r a u l

Discussion

  • Nobody/Anonymous

    example of the problem

     
  • Paige Sullivan

    Paige Sullivan - 2005-08-03

    Logged In: YES
    user_id=612671

    The developers are reviewing and discussing the problem
    now. Most likely it will not be fixed in v1.x as we are on the
    verge of releasing v2.0. However, we will test this in v2.0 and
    ensure that v2.0 can handle the characters.

     
  • Dominique Stender

    Logged In: YES
    user_id=289411

    As already pointed out, CPAINT v2 is about to be released
    and will be able to handle arbitrary character sets.
    If for some reasons you can't wait a few days you might want
    to try and change the cpaint.inc.asp file:

    Replace the lines 18 and 32 with this:
    response.ContentType = "text/xml; charset=""ISO-8859-1""

    Replace the lines 20 and 24 with this:
    response.contenttype = "text/html; charset=""ISO-8859-1""

    Replace the line 44 with this:
    cpaint_xml_return_data = "<?xml version=""1.0""
    encoding=""ISO-8859-1"" standalone=""yes""?><AJAX-RESPONSE>"
    & cpaint_xml_result & "</AJAX-RESPONSE>"

    NOTE that ISO-8859-1 is just an example. You should replace
    it with the actual characterset you're using. If you're
    using Windows you might be using CP1252 or similar.
    Wikipedia is a good resource for finding the correct
    character set.
    I don't have any means to test the changes mentioned above -
    I'm the PHP guy of CPAINT - but it should do what it is
    expected to do.

     

Log in to post a comment.