Can the charset setting of the web page and the charset of the server and db be different?

Asked 1 years ago, Updated 1 years ago, 115 views

We are currently creating a web page with mysql, phpapache on the hosting server. The charset of the server and mysql is set to utf-8. But the page files on the web page are set to euc-kr. The Web was created using the Nouboard It's not what I made from the beginning, but I don't think it's important and I'm making it in euc-kr.

But then I think I'm going to end up with utf-8, so I'm trying to figure out what to do.

Currently, php and html files are all euc-kr. Mysql default setting is utf-8. But the data added to the web page is probably entered as euc-krset. In this case, I think we need to enter db as a new character set from the beginning Is there any other way?

mysql centos php apache charset

2022-09-22 21:43

1 Answers

Yes, it can be different. However, in other cases, you have to convert it when you go beyond your own range.


2022-09-22 21:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.