Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Guidance on handling non-ASCII characters #8

@rchekaluk

Description

@rchekaluk

Do you have guidance on how to properly handle the case where qbXML contains non-ASCII and/or reserved characters as mentioned on How does qbXML handle special characters? (this is easy to do, for example, in fields Name, FirstName, LastName, CompanyName)

Is there some readily available Nokogiri::HTML or Nokogiri::XML incantation that will cleanse a string prior to submitting it to QBWC? (to avoid error "QuickBooks found an error with the XML")

Is it possible for Qbxml to handle this cleansing automatically, or at least could there be some function provided to do so?

If I understand the process correctly, this test string:

nonascii = 'Ray "you can call mé" <J. johnson>'

Must be transformed into this string prior to submitting it to QBWC:

Ray \"you can call m&#233;\" &lt;J. johnson&gt;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions