Why does Notepad++ display question marks for a language other than English?

Viewed 596

1

The circle in red is where I put my rtl arabic language. I wanted to use it as an example on my web page that used RTL layout. How can I resolve this?

2 Answers

Expanding on my comment:

The question marks indicate that characters that can't be decoded by the current encoding. In the bottom right corner, you can see that the current encoding is "ANSI".

You need to change the encoding to UTF-8, as that is (most likely) the correct encoding for the file. Do so via Encoding -> UTF-8 in the toolbar.

This is clearly an Encoding problem. When an editor doesn't recognize an encoding, it often display question marks ? instead of the characters it doesn't understand.

What you can do (besides getting a better editor) is to open the file in Windows Notepad. It actually supports several encodings. You can choose encoding in the open dialog. Try different encodings, and if you succeed (the text is shown correctly), then use 'Save as' and choose 'Utf-8' as encoding. That should work in Notepad++.

Related