Native-Messaging icon indicating copy to clipboard operation
Native-Messaging copied to clipboard

Send messages with accented characters

Open marcelobandeira opened this issue 7 years ago • 1 comments

Hi, vakho10. i am trying to send messages with accented characters like "á", "ç", "ô", etc, but it does not work. On the console of the chrome extention appear the following error:

(BLESSED_EXTENSION context for knldjmfmopnpolahpmmgbagdohdnhkik) undefined:1: Uncaught SyntaxError: Unexpected end of JSON input{SyntaxError: Unexpected end of JSON input at Object.parse () at dispatchOnMessage (extensions::messaging:338:21)}

Do you have any idea of what could be the problem?

Messages without accented characters work fine.

marcelobandeira avatar Jan 25 '18 20:01 marcelobandeira

@marcelobandeira Well, from the exception I guess the JSON becomes invalid because of the characters. Something like this happens: { "something" : "bad symbols.asdkfsa;"othertextcomeshere } and it thinks that the value ended. Maybe there is some symbol which looks like or is similar to " character?

vakho10 avatar Feb 01 '18 10:02 vakho10