Page 1 of 1

Firefox dump return strange characters

Posted: Mon Jul 12, 2021 8:20 pm
by Kwai chang caine
Hello at all

I run Firefox with "-console" parameter, and write in browser console

Code: Select all

dump(document.documentElement.textContent)
i have a part of text
LECTURE AUTOMATIQUE BLOQU├ëEINCRUSTATION VID├ëOBlocage des traqueurs de r├®seaux sociaux, des cookies de pistage intersites et des d├®tecteurs dÔÇÖempreinte num├®rique.
but with the LOG

Code: Select all

console.log(document.documentElement.textContent)
i have this
LECTURE AUTOMATIQUE BLOQUÉEINCRUSTATION VIDÉOBlocage des traqueurs de réseaux sociaux, des cookies de pistage intersites et des détecteurs d’empreinte numérique.
Apparently this is a UNICODE problem, but someone know how say to FF it must writing UNICODE text in the console

Have a good day

Re: Firefox dump return strange characters

Posted: Mon Jul 12, 2021 11:40 pm
by Demivec
Try reading the file as UTF 8.

Re: Firefox dump return strange characters

Posted: Tue Jul 13, 2021 4:33 pm
by Kwai chang caine
Thanks DEMIVEC for your answer, but there are no file :|

I do like that :
I open FF in console mode, Firefox open itself a WindowConsole
After i open his BrowserConsole CTRL+SHIFT+K
I write in BrowserConsole

Code: Select all

dump("Spécial")
I have a bad character in the WindowConsole :|
After i write in BrowserConsole

Code: Select all

console.log("Spécial")
And in the LOG of FF the "é" is correctly writing :shock:

Image

1/ Perhaps a parameter of FF is not good :idea:
2/ Perhaps i can send in the dump a encoded text :idea:

I have try several things but nothing works
Why the word "Spécial" is correctly wrinting in the BrowserConsole and not in the WindowConsole :|