Re: Setting encoding in Kate

2017-09-06 Thread Nikos Chantziaras
On 06/09/17 17:25, Nikos Chantziaras wrote: Unfortunately, that's not possible. The software used by the other team members does not support Unicode. So we use ASCII for all files, except for those that need non-ASCII stuff in them (umlauts, etc.) Those use CP-1252. (I'm the only Linux guy in

Re: Setting encoding in Kate

2017-09-06 Thread Nikos Chantziaras
On 06/09/17 17:19, Kevin Krammer wrote: On Wednesday, 2017-09-06, 17:04:27, Nikos Chantziaras wrote: On 06/09/17 16:17, Burkhard Lück wrote: Am Montag, 4. September 2017, 22:46:44 CEST schrieb Nikos Chantziaras: Is there a way to mark a file as using a specific encoding? Like some string insid

Re: Setting encoding in Kate

2017-09-06 Thread Kevin Krammer
On Wednesday, 2017-09-06, 17:04:27, Nikos Chantziaras wrote: > On 06/09/17 16:17, Burkhard Lück wrote: > > Am Montag, 4. September 2017, 22:46:44 CEST schrieb Nikos Chantziaras: > >> Is there a way to mark a file as using a specific encoding? Like some > >> string inside a C comment that Kate recog

Re: Setting encoding in Kate

2017-09-06 Thread Nikos Chantziaras
On 06/09/17 16:36, René J.V. Bertin wrote: On Wednesday September 06 2017 16:16:16 Nikos Chantziaras wrote: Even worse, if I have that comment in the file and try to switch the encoding manually (from and to CP1252), then Kate corrupts the file by deleting the unrecognized "block" characters.

Re: Setting encoding in Kate

2017-09-06 Thread Nikos Chantziaras
On 06/09/17 16:17, Burkhard Lück wrote: Am Montag, 4. September 2017, 22:46:44 CEST schrieb Nikos Chantziaras: Is there a way to mark a file as using a specific encoding? Like some string inside a C comment that Kate recognizes? https://docs.kde.org/trunk5/en/applications/katepart/config-varia

Re: Setting encoding in Kate

2017-09-06 Thread René J . V . Bertin
On Wednesday September 06 2017 16:16:16 Nikos Chantziaras wrote: >Even worse, if I have that comment in the file and try to switch the >encoding manually (from and to CP1252), then Kate corrupts the file by >deleting the unrecognized "block" characters. That might be an error in some underlying

Re: Setting encoding in Kate

2017-09-06 Thread Burkhard Lück
Am Montag, 4. September 2017, 22:46:44 CEST schrieb Nikos Chantziaras: > Is there a way to mark a file as using a specific encoding? Like some > string inside a C comment that Kate recognizes? https://docs.kde.org/trunk5/en/applications/katepart/config-variables.html -- Burkhard Lück

Re: Setting encoding in Kate

2017-09-06 Thread Nikos Chantziaras
On 06/09/17 15:53, Kevin Krammer wrote: On Monday, 2017-09-04, 22:46:44, Nikos Chantziaras wrote: Is there a way to mark a file as using a specific encoding? Like some string inside a C comment that Kate recognizes? I think Kate does understand comments like this, I vaguely remember seeing som

Re: Setting encoding in Kate

2017-09-06 Thread René J . V . Bertin
On Wednesday September 06 2017 14:53:08 Kevin Krammer wrote: >So I've checked my KDE source and found this > >// kate: encoding utf-8 > >and > >/* kate: encoding utf-8 */ Also works with other common comment delimiters like #. However and IIRC it only works in the first and last handful of lines

Re: Setting encoding in Kate

2017-09-06 Thread Kevin Krammer
On Monday, 2017-09-04, 22:46:44, Nikos Chantziaras wrote: > Is there a way to mark a file as using a specific encoding? Like some > string inside a C comment that Kate recognizes? I think Kate does understand comments like this, I vaguely remember seeing some for giving hints on intentation. So