Skip to content

DDXMLNode:XMLString can't handle unicode #36

Closed
@qiulang

Description

@qiulang

Hi I find that DDXMLNode:XMLString can't handle unicode case, it will return string with unicode point &#x...

Just check this simple case,

DDXMLNode *node = [DDXMLNode attributeWithName:@"name" stringValue:@"我"];
NSLog(@"%@",[node XMLString]);

The output is "name="& # x6211;" // I have to add some space in between here otherwise my browser will convert to the corresponding unicode character

I have check the code but but have no idea how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions