Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

enter image description here

I am building an application using Laravel framework. In the application there are two sets of language English and Arabic. When saving Arabic language field Name and Address data into MYSQL database. it saves the Arabic language in corrupted format.

name : ùùùù

What is that I am missing error


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
675 views
Welcome To Ask or Share your Answers For Others

1 Answer

You should use unicode set of collation utf8_unicode_ci or utf8mb4_unicode_ci so it will support some specific languages chars.

probably utf8mb4_unicode_ci since it's the default for laravel.

more info and explanation about collation and the differences please check

What's the difference between utf8_general_ci and utf8_unicode_ci?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...