SOLUTION
Ok so basicaly what i was doing wrong was that default cp1250 enxoding. Just set the encoding on everything to UTF-8 and displaying and storing will be just fine, it will convert some of special characters in your code to "?" when u change it, but with a little bit of extra work you can change it back.
Sorry for the dumb question, but i though UTF-8 wasnt way to go... idk why :P