How to setup Visual Studio Code to detect and set the correct encoding on file open

To allow Visual Studio Code to automatically detect the encoding of a file, you can set “files.autoGuessEncoding”:true (in the settings.json configuration file). https://github.com/Microsoft/vscode/pull/21416 This obviously requires an updated verison of the application compared to when the question was originally asked.

is there a way to highlight all the special accent characters in sublime text or any other text editor?

Yes. Sublime text supports regular expression and you can select all non-ASCII (code point > 128) characters. This regex find should be enough for you: [^\x00-\x7F] Just search and replace. But if you are doing manual HTML encode in the first place you are doing it wrong. Save your files as UTF-8 encoding (Sublime Text … Read more

How many characters are there in a GUID?

From MSDN: A GUID is a 128-bit value consisting of one group of 8 hexadecimal digits, followed by three groups of 4 hexadecimal digits each, followed by one group of 12 hexadecimal digits. The following example GUID shows the groupings of hexadecimal digits in a GUID: 6B29FC40-CA47-1067-B31D-00DD010662DA From Wikipedia: Often braces are added to enclose … Read more

Why is base128 not used? [closed]

The problem is that at least 32 characters of the ASCII character set are ‘control characters’ which may be interpreted by the receiving terminal. E.g., there’s the BEL (bell) character that makes the receiving terminal chime. There’s the SOT (Start Of Transmission) and EOT (End Of Transmission) characters which performs exactly what their names imply. … Read more

How can I send and receive WebSocket messages on the server side?

Note: This is some explanation and pseudocode as to how to implement a very trivial server that can handle incoming and outcoming WebSocket messages as per the definitive framing format. It does not include the handshaking process. Furthermore, this answer has been made for educational purposes; it is not a full-featured implementation. Specification (RFC 6455) … Read more

Why does base64 encoding require padding if the input length is not divisible by 3?

Your conclusion that padding is unnecessary is right. It’s always possible to determine the length of the input unambiguously from the length of the encoded sequence. However, padding is useful in situations where base64 encoded strings are concatenated in such a way that the lengths of the individual sequences are lost, as might happen, for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)