News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

A window in 30 lines of code, using the Masm32 SDK

Started by jj2007, November 20, 2023, 03:24:09 AM

Previous topic - Next topic

sinsi

Notepad and Notepad++ seem to save as normal text.

jj2007

Hi Sinsi,

This is weird: what you sent is Utf8 code without a Utf8 BOM:

F0 9F 98 8A  F0 9F A4 A3  F0 9F 98 82

So apparently, Notepad uses an autodetect mechanism that recognises these Utf8 codepoints. Interesting.

SimpleEditor uses a BOM, but when you build a project, it exports the code to Res\Tmp_file.asm in plain text format without BOM.

There it is:
QuoteWindows Notepad, in all currently supported versions of Windows, defaults to writing UTF-8 without a BOM (a change from the outdated/unsupported Windows 7 Notepad)

This reminds me of our lovely discussions with Utf8 hater Nidud ;-)

Since I am an expert for creating confusion, here is what happens when you write in your native codepage and then try to add emojis:

QuoteThe file contains Unicode characters that could be lost if the file were saved as a text file in ANSI characters. To preserve Unicode characters choose Undo, then select one of the Unicode options in the Encoding drop-down list. Continue?

Utf8 rocks, forget the old codepages :cool:



P.S., the page you are reading right now, btw, has a UTF8 BOM:
<meta charset="UTF-8">

NoCforMe

Quote from: greenozon on March 14, 2024, 08:13:20 AMIt's easy
goto https://emojipedia.org/flags
then copy whatever you like, eg:

🏁
🚩
🎌
🏴
🏳�
🏳��🌈
🏳��⚧️
🏴�☠️
🇺🇳

and paste into the DropFiles.exe editor pane

or whatever emojis you like eg
😺😺😺
😱
😨
😰
😥
😓

Heh; forget about JJ's application for the moment: a lot of those characters don't even render correctly in my web browser (Opera 95.0.4635.90, Windows 7 64 Pro):

Assembly language programming should be fun. That's why I do it.

greenozon

Try smth more recent
eg Supermium 122
Vivaldi 6.6
etc
!

NoCforMe

Assembly language programming should be fun. That's why I do it.

greenozon

the you are under super high risk rihgtnow!
if you still using geriatric build 109