Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default encoding for a string under VB.NET?

I have a simple question about string. Consider following code:

Dim S1 as String = "abc"

What is the encoding for S1? Is that UTF-8 or depending on user windows local setting?

like image 224
Pan Pizza Avatar asked Apr 27 '12 11:04

Pan Pizza


Video Answer


1 Answers

System.String is documented to use UTF-16 internally.

like image 70
一二三 Avatar answered Sep 28 '22 02:09

一二三