Mousehole - web server / browser hybrid

Share your advanced PureBasic knowledge/code with the community.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5353
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Mousehole - web server / browser hybrid

Post by Kwai chang caine »

the.weavster wrote:It's the same error captain_skank had, you need to make sure you have saved the html as utf8 :wink:
First i have save with Notepad in UTF-8 and that not works two :|
After i have do like captain_skank with Notepad++ and this time that works :D
It's strange because when i see the format in notepad, it say "ANSI" :shock:
The mainly, it's that works now, thanks for your help and sharing 8)
ImageThe happiness is a road...
Not a destination
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Mousehole - web server / browser hybrid

Post by the.weavster »

Kwai chang caine wrote:After i have do like captain_skank with Notepad++ and this time that works :D
It's strange because when i see the format in notepad, it say "ANSI" :shock:
As index.html doesn't contain any special characters outside of the standard 256 utf8 and ANSI will be equivalent.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Mousehole - web server / browser hybrid

Post by #NULL »

It's range 0..127 that has identical codepoints.
If Notepad maybe doesn't write a BOM you can try so save the file with PB editor, set File > File Format > Encoding: Utf8, and save. Should write a BOM even if the file is empty.
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: Mousehole - web server / browser hybrid

Post by Marc56us »

In Notepad++ you can set encoding for new empty file, but also reset encoding of existing opened file when open

Setting > Preferences > New Document
ie: UTF-8 [ ] Apply to opened ANSI files

:wink:
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Mousehole - web server / browser hybrid

Post by the.weavster »

#NULL wrote:It's range 0..127 that has identical codepoints.
Yes, sorry.
index.html doesn't contain any special characters outside the 127 so the main point still stands though.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5353
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Mousehole - web server / browser hybrid

Post by Kwai chang caine »

Thanks at all for this several tips and helps 8)
the.weavster wrote:As index.html doesn't contain any special characters outside of the standard 256 utf8 and ANSI will be equivalent.
Ahhh ok, this is the reason, thanks for your explanation 8)
#Null wrote:save the file with PB editor, set File > File Format > Encoding: Utf8, and save. Should write a BOM even if the file is empty.
I have not see the option of PB file format saving, when i think i have search a notepad++ then i have this option under my eyes :oops:
Thanks #Null 8)
Marc56 wrote:Setting > Preferences > New Document
ie: UTF-8 [ ] Apply to opened ANSI files
I have searched how adjust the format, but notepad++ have so much menus :|
By chance, just saving fix my problem :oops: :lol:
But thanks for your help 8)
ImageThe happiness is a road...
Not a destination
Post Reply