

If you know there aren’t any other UTF8 characters in the file, then do Encoding > ANSI ( not Encoding > Convert to ANSI). (In UTF-8, the single byte x93 is not a representation of a real character U+0093 needs a different sequence of bytes to encode it in UTF-8… which is the crux of the problem) in an ANSI file, where x93 is a valid byte at codepoint 0x93, \x93 search does work. Okay, I can replicate: if I have a file open that Notepad++ thinks is UTF8 (or UTF-8-BOM), and search for that text, it won’t find it. I tried to search for \x93 and \x94 after selecting the “Regular expression” mode, but it says, Can’t find the text "\x93" And this Forum isn’t here to guide you though the intricacies of web design we are here to talk about (and help with) the usage of , Because if you don’t, you’re likely to mess things up more than they currently are. I would highly recommend doing research on how file encoding, especially for webpages, works. Why have you named your webpage source file with the.

If you want to keep the encoding as-is, use the following search => replace pairs:īut don’t do that until you actually understand the encoding issues involved.īy file, I mean the “source” file of the webpage with the. Or, even worse, you have a mix of UTF8 and WIN-1252-encoded characters in your file, which is just wrong. So it looks like you’ve got a file where you put in smart quotes, and saved the file as ANSI (probably really Windows 1252), and that probably when you are sending the webpage, you are saying it’s UTF8 and Notepad++ has probably mis-guessed that it’s UTF8. Please note that in a so-called “ANSI” encoding, x91 - x94 are the “smart quotes”: ‘ ’ “ ”. And in Notepad++, it sometimes guesses the encoding wrong, because to a program, it’s all a bunch of bytes, and while there are heuristics that identify certain encodings, any encoding that doesn’t use the Unicode BOM is likely to be misinterpreted under the right (wrong?) circumstances. On the web page, you have to send the right encoding information in the header (and maybe in the meta tag)… By “correct”, I mean that the sent encoding must match with the actual encoding of the file. Your real problem in that file is that you don’t understand the file’s actual encoding.

To search for x92 in Notepad++, look for \x92 when in regular expression mode. Forum isn’t a generic help forum we are focused on Notepad++ if you want help with command prompt or power shell, go elsewhere.
