Firefox dump return strange characters

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Firefox dump return strange characters

Post 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
ImageThe happiness is a road...
Not a destination
User avatar
Demivec
Addict
Addict
Posts: 4082
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Firefox dump return strange characters

Post by Demivec »

Try reading the file as UTF 8.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Firefox dump return strange characters

Post 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 :|
ImageThe happiness is a road...
Not a destination
Post Reply