•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 423,299 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,258 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 1897 | Replies: 0
![]() |
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, I have a table which was holding values in a text field in ISO-8859-1 format. I am wanting to convert this data to UTF-8. I started by changing the field type to ntext. Should I also need to pull out the data, re-encode it in UTF-8 and put it back in? I assume I do as when I changed the html charset to be UTF-8 the cahracters were not displaying properly.
I actually tried to do this as well(pulling out the data, re-encoding it and inserting it again), but it doesnt seem to work....
I tried using mb_convert_encoding, and utf8_encoding, but neither seemd to work.
Actually the only time I was able to get anything UTF8 to work was by using a form to insert some japanese characters into the database, and using utf8_encode before saving them. It seems to actually store the UTF8 character code(which when retrieved displays fine on the webpage).
Thanks
Ray
PS I was using PHP to interact with the DB
I actually tried to do this as well(pulling out the data, re-encoding it and inserting it again), but it doesnt seem to work....
I tried using mb_convert_encoding, and utf8_encoding, but neither seemd to work.
Actually the only time I was able to get anything UTF8 to work was by using a form to insert some japanese characters into the database, and using utf8_encode before saving them. It seems to actually store the UTF8 character code(which when retrieved displays fine on the webpage).
Thanks
Ray
PS I was using PHP to interact with the DB
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the MS SQL Forum
- Previous Thread: wanted small project in MS -sql server2000
- Next Thread: Wildcards in CASE statements


Linear Mode