So I have an excel sheet that I have saved as CSV and encoded as UTF-8
with web options. When I originally did this it showed a lot of accented letters that I removed, this is odd as the content is a really simple language list. I've deleted all these characters and imported to SQL with CSV with LOAD DATA
and utf8
character set. I've run the query 'SET NAMES utf8'
and I've changed Collation of my database to utf8_general_ci in the operations menu of phpmyadmin. I've set
<meta charset="utf-8"/>
at the top of my webpage and I've set
<?php echo utf8_encode($row['lang']); ?>
in my webpage to echo a string of languages.
What I get is the a list that goes out of the div container. I've identified that some spaces seem to be able to drop to a new line and some don't therefore the browser seems to think the list is one long word rather then several separated. Anyone have any ideas?
Example data: "English, Spanish, French, Russian"