User forums > General (but related to Code::Blocks)

shared source file codepage trouble

<< < (2/2)

jimmyo:
Hi all,

Thanks for help,
Change in the Editor Settings to WINDOWS 1252, and it work.

Thanks all,
  Jimmy

Biplab:

--- Quote from: dje on August 10, 2007, 02:11:55 pm ---Why are all these encoding available if not supported in Code::Blocks ?
What happens if they are used (I suppose they are proposed because Scintilla supports them) ?

--- End quote ---

The code to handle encoding is there. But, I guess, it was disabled long back due to some nasty crash. :)

I had the same doubt like you and I started playing with the code to enable these options. So far I've found the following.

* The disabled code can detect and handle files with upto UTF-16.
* But it works well if you move upwards. I mean if you move from UTF-8 to higher. Your file will become a garbage if you move downwards, i.e., UTF-32 to UTF-8.
* Presently UTF-16BE puts C::B into an infinite loop.
* The encoding handling code, file loading code needs a lot of improvements.
As you can understand, this is a vital code for C::B. Thus I'm still trying to figure out an optimal solution which I can put forward for further testing. :)

For the time being, please don't use C::B with an encoding beyond UTF-8.

dje:
Thanks for these precise info Biplab

Dje

Navigation

[0] Message Index

[*] Previous page

Go to full version