Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Encoding error with arabic characters #5

Description

@cyndie

MemoPlayer knows how to display arabic characters. XML parsing that contains arabic character works well too. Browser.set/getCooky() works well.

Unfortunately, Browser.print() function doesn't work with arabic characters. Browser.get/setRecord doesn't work too.

Here is the VRML code to test the pb :
Group {
children [

    DEF MESSAGE Message { url "Board" }

    DEF SCRIPT Script {
        eventIn MFString data_changed
        field SFString title "@[Title:]"
        url "javascript:
            function initialize () {
                Browser.sendMessage('Board', 'INIT', title, 'setCooky', 'setRecord');
                Browser.print('title = '+title);
            }

            function data_changed () {
                if (data_changed[0] == 'LSK') {
                    Browser.setCooky('title', title);
                    Browser.sendMessage('Board', 'INIT', Browser.getCooky('title'), 'DONE', 'setRecord');
                } else if (data_changed[0] == 'RSK') {
                    Browser.setRecord('title', title);
                    Browser.sendMessage('Board', 'INIT', Browser.getRecord('title'), 'setCooky', 'DONE');
                }
            }
        "
    }
]
ROUTE MESSAGE.data_changed TO SCRIPT.data_changed

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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