Welcome Guest, Not a member yet? Register   Sign In
UTF-8 views start with a "-"
#1

[eluser]Unknown[/eluser]
Hi there,

for some reason, if I'm loading a UTF-8 view, the content of the view-file is prefixed with a small "-"-character. Needless to say, this screws up my design somewhat. Especially because it's displayed for every new view I load, so if I have three UTF-8 views with the content "a", "b" and "c", it would look like this:

-a-b-c

This does not happen with ANSI encoding, but I need UTF-8 for special Norwegian characters, and quite frankly it's just better to have everything UTF-8.. Oh and I have set the encoding config-value:

$config['charset'] = "UTF-8";

..but I'm noticing that the CI files themselves are ANSI encoded. Is that what's causing the trouble? I'm using Notepad++, any known bugs I should know about?
#2

[eluser]tomcode[/eluser]
Save You UTF-8 files without BOM .
#3

[eluser]Unknown[/eluser]
It worked! Thanks a bunch! Smile




Theme © iAndrew 2016 - Forum software by © MyBB