JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • What encoding is and why it matters

    C# SELF
    37 level,0 lecture
    Let's talk about how characters turn into bytes and back: what encoding is, why you need it, why you sometimes get garbled text, what ASCII is historically remembered for, and how to avoid text problems in real .NET apps (including choosing the right Encoding for StreamReader/ StreamWriter).
    Open
  • Main types of encodings: UTF-8, UTF-16, ASCII

    C# SELF
    37 level,1 lecture
    We break down how computers turn bytes into characters and back: how ASCII, UTF-8 and UTF-16 differ, what BOM and byte order (Endian) are, where to use which encoding, and how to explicitly set encoding in C# via System.Text.Encoding. We'll show practical examples with StreamReader/ StreamWriter, the methods File.WriteAllText/ File.ReadAllText, and also explain where "mojibake" comes from when encodings mismatch. At the end — a summary comparison table.
    Open
  • Specifying the encoding when reading and writing ( Encoding)

    C# SELF
    37 level,2 lecture
    We go over which encoding StreamReader and StreamWriter use by default, how to explicitly set Encoding in constructors, when it matters, how to convert files between Windows-1251, UTF-8 and UTF-16, and what typical mistakes show up when working with encodings and how to avoid them.
    Open
  • Problems with encoding mismatches and BOM

    C# SELF
    37 level,3 lecture
    In this lecture we'll dig into why encoding problems and the BOM happen, how UTF-8, Windows-1251, UTF-16 differ, how to correctly read and write files with StreamReader/ StreamWriter using the right encoding, when to use UTF8Encoding with/without BOM, and how to detect and remove a BOM. We'll show practical examples and best practices to avoid mojibake (garbled text).
    Open
  • File encoding conversion

    C# SELF
    37 level,4 lecture
    In this lecture we'll go over why and how to re-encode text files in .NET: from picking the right encoding to handling the BOM. Step by step we'll show a strategy based on StreamReader/ StreamWriter and System.Text.Encoding, discuss common pitfalls (BOM, "garbled text", large files) and provide ready examples of a converter and practical tips for real tasks (CSV, Excel, Windows/macOS/Linux).
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy