Sublime Forum

Bug: Â character shows up but invisible

#1

I’m a Mac user with Swedish keyboard.
When writing for example: #container {…} - sometimes and I don’t know why the character “” is inserted right after the function name BUT invisible. This may be because of an accidently mistype of the brackets, and then I back space and retype the brackets - but it still there.

When writing for example PHP functions, there is no way to see the  character, other than you get error messages trying to run the script, and you have to go back to the function and clear the space between the bracket parentes and the curly brackets, and then you run it and its fine.

In JavaScript and CSS you can see the actual  character from looking at the source code in the browser. The  character will never be invisible in the Sublime Text 2.

Look at this print screen of a html-document with CSS, at .test1 {}, and then see the source code from the browser next to it, the character is showing up there.

0 Likes

#2

This is a huge problem for me as well, it breaks my sites every time I code PHP. I’ve been trying to find a solution for two years.

It is only happening on Mac (also a Swedish keyboard here) and it’s only added after writing statements of this type:

[code]if ($hello) {

} else {

}[/code]

Will sometimes become:

[code]if ($hello)Â {

} else {

}[/code]

It does not appear when writing similar functions in JavaScript in the same editor (Sublime, obviously) and computer.

The character is NOT the swedish letter Å (A with a circle above), it’s some weird accented  (A with half a circle above) no-one is ever using.

I’ve only noticed this behaviour in Sublime Text and Coda in OS X.

The characters are visible if I Reopen with encoding ISO 8851-9 instead of UTF-8.
All my files, default settings, databases and file systems are using UTF-8.
This was happening in Sublime Text 2 and is happening in Sublime Text 3.
It is also happening on my other mac (also a swedish keyboard).

As it stands now, I’ve gotten used to backspacing after writing functions and brackets, but if I ever forget, it breaks the entire site until I’ve found the character. I mean, nothing is working, for anyone. It will probably get me fired one day.

Please please please, someone smarter than me, help us. I’ve been furious at Sublime Text many times over this.

0 Likes

#3

Same Problem here (OS X, Azerty Keyboard (Belgium, Period), Sublime 3.). The character always seems to appear after || for me. Issue is persisent in between different projects.

The (manual) fix for me is to open the file (in UTF-8 by default), reopen the file with encoding ISO-8859-1 (which shows the character), remove it from there, save it, reopen the file as UTF-8, save again.

Here are two screenshots from a project with the file opened using different encodings:

0 Likes

#4

I’m also having the same issue.
OSX, Sublime 3, Spanish layout keyboard (but English language in prefs)

Has anyone found a fix?
This bug is driving me crazy.

0 Likes