Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

encoding

“’” showing on page instead of ” ‘ “

November 11, 2022 by Tarik

So what’s the problem, It’s a ’ (RIGHT SINGLE QUOTATION MARK – U+2019) character which is being decoded as CP-1252 instead of UTF-8. If you check the encodings table, then you see that this character is in UTF-8 composed of bytes 0xE2, 0x80 and 0x99. If you check the CP-1252 code page layout, then you’ll … Read more

Categories encoding Tags encoding, mojibake, utf-8 Leave a comment

What’s the difference between encoding and charset?

October 22, 2022 by Tarik

Basically: charset is the set of characters you can use encoding is the way these characters are stored into memory

Categories encoding Tags character-encoding, encoding Leave a comment

Using PowerShell to write a file in UTF-8 without the BOM

September 27, 2022 by Tarik

Using .NET’s UTF8Encoding class and passing $False to the constructor seems to work: $MyRawString = Get-Content -Raw $MyPath $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False [System.IO.File]::WriteAllLines($MyPath, $MyRawString, $Utf8NoBomEncoding)

Categories encoding Tags byte-order-mark, encoding, powershell, utf-8 Leave a comment

How do I see the current encoding of a file in Sublime Text?

September 24, 2022 by Tarik

Since this thread is a popular result in google search, here is the way to do it for sublime text 3 build 3059+: in user preferences, add the line: “show_encoding”: true

Categories encoding Tags encoding, sublimetext2 Leave a comment

Why does a base64 encoded string have an = sign at the end

September 18, 2022 by Tarik

Q Does a base64 string always end with =? A: No. (the word usb is base64 encoded into dXNi) Q Why does an = get appended at the end? A: As a short answer: The last character (= sign) is added only as a complement (padding) in the final process of encoding a message with … Read more

Categories encoding Tags base64, encoding Leave a comment

What is base 64 encoding used for?

September 6, 2022 by Tarik

When you have some binary data that you want to ship across a network, you generally don’t do it by just streaming the bits and bytes over the wire in a raw format. Why? because some media are made for streaming text. You never know — some protocols may interpret your binary data as control … Read more

Categories encoding Tags base64, encode, encoding Leave a comment
Newer posts
← Previous Page1 … Page3 Page4

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa