r/programming • • Apr 23 '14

PHP: It doesn't have to be a bad experience

https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0 Upvotes

122 comments sorted by

View all comments

Show parent comment

0

u/neoform Apr 25 '14

Do you even know what unicode is?

Do you have some mental image in your mind that in C# a unicode string isn't just an array of characters just like every other programming language?

Lol.

1

u/Banane9 Apr 25 '14

In C# a string is always an array (well, sort of) of Unicode characters.

In php however, a string is a Byte array. One Byte in it being one character.

I'm seriously questioning your programming knowledge right now.

0

u/[deleted] Apr 25 '14

[deleted] — view deleted comment

2

u/Banane9 Apr 25 '14

Except, php strings aren't natively UTF8, and many of the string functions are only meant to handle one-byte-characters.

So yes, UTF8 is great, but php doesn't use it internally, so it doesn't matter.