encoding questions ...
#3
(11-24-2023, 02:06 PM)v71221 Wrote: UTF-8 uses one to four bytes to encode characters.
UTF-8 was designed for backward compatibility with ASCII
the first 128 characters are encoded using a single byte (8-bit) with the same binary value as ASCII
https://en.wikipedia.org/wiki/UTF-8
https://en.wikipedia.org/wiki/ASCII

Windows-1251 uses one byte (8-bit) to encode characters.
the first 128 characters have the same binary value as ASCII
https://www.ascii-code.com/CP1251

pass123 all these characters are ASCII

Thus, a file with these characters must be 7 bytes in size
regardless of whether it is saved in ASCII or UTF-8 or Windows-1251 format.

ok thx for the explanation ,so if i understand well its utf-8  encoding in notepad ++ ? even if computer was cp-1251
Reply


Messages In This Thread
encoding questions ... - by pakky - 11-22-2023, 08:35 PM
RE: encoding questions ... - by v71221 - 11-24-2023, 02:06 PM
RE: encoding questions ... - by pakky - 11-24-2023, 06:34 PM
RE: encoding questions ... - by Snoopy - 11-24-2023, 06:50 PM