From NCERTAsked by Anonymous from London, United Kingdom23 Oct 2026, 5:32 PM ISTUpdated
In one line
You can change a file’s encoding (the way letters and symbols are stored) using special software or commands.
Character encoding — Using numbers to represent text characters Text encoding lets computers store and read letters from any language. Image: Wikipedia
The rule
File encoding is the method computers use to turn letters, numbers, and symbols into a format they can store and read.
Common encodings are UTF-8, UTF-16, and ASCII.
Let's understand it simply
Imagine you and your friend use different languages to write a letter. If you want your friend to read your letter, you must rewrite it in their language. Changing a file’s encoding is like rewriting a letter so another computer can read it correctly. If you open a Hindi song file in the wrong encoding, you may see strange symbols instead of words. Changing the encoding fixes this.
How it works
Open the file in a text editor that supports different encodings (like Notepad, VS Code, or Notepad++).
Choose the option to open or save the file with a specific encoding (for example, "Save As" → select encoding).
Pick the new encoding you want (like UTF-8).
Save the file. Now, the file uses the new encoding.
If using a command line, you can use commands like iconv (Linux) to convert encoding.
Changing a file's encoding in Notepad++
Open the file in Notepad++
Click 'Encoding' menu
Choose 'Convert to UTF-8' (or another encoding)
Save the file
The story behind it
In the early days, computers only understood simple English letters (ASCII). As people wanted to use computers for Hindi, Tamil, Chinese, and emojis, new encodings like UTF-8 were created. UTF-8 can store almost every language’s letters and symbols. This made sharing files across the world much easier.
Where you see it in real life
Sending emails: If the encoding is wrong, the message may look like random symbols.
Reading e-books: Some e-books show gibberish if opened with the wrong encoding.
Programming: Source code files must use the right encoding, or programs may not run.
Subtitles for movies: Wrong encoding can make subtitles unreadable (like boxes instead of letters).
Web pages: Websites use UTF-8 so people everywhere can read them.
Why it matters
Makes sure everyone can read and share files, no matter their language.
Avoids errors and strange symbols in documents.
Needed for programming, web design, and data sharing.
Important for exams and jobs in IT, computer science, and digital communication.
Common mistakes
Opening a file in the wrong encoding and thinking the file is broken (it’s not, just change the encoding).
Saving a file in an old encoding (like ASCII), which cannot store Hindi or emojis.
Forgetting to select the right encoding when saving, leading to data loss.
Remember it
If you see strange symbols, try changing the file’s encoding — it’s like switching to the right language dictionary.
Check yourself
What is file encoding?
It is the way computers store letters and symbols as numbers.
Why do you sometimes see boxes or gibberish when opening a file?
Because the file is opened with the wrong encoding.
How can you fix a file showing strange symbols?
Change the encoding in your text editor to the correct one.
Why is UTF-8 popular?
It supports almost all languages and symbols worldwide.
Quick recap
File encoding is how computers store letters and symbols.
You can change encoding using text editors or commands.
Wrong encoding shows strange symbols or boxes.
UTF-8 is the most common encoding for many languages.
Always check encoding when sharing files in different languages.