Feature request #2525
Width of field contains cyrillic values
|Assigned to:||nobody -||% Done:||
|Target version:||Future Release - Nice to have|
|Platform version:||Pull Request or Patch supplied:|
I'm not sure is it bug or not, but it could throw into confusion some users. When create new vector layer and set its width need keep in mind, that width of field it is size of field in bytes, not in symbols! For example, I create text field and set width=3. I try to fill this field with Cyrillic word 'баг' and when I've save changes in layer I've get the following results:
I guess this is because for encoding cyrillic symbols in utf uses 2 bytes.
Updated by Alexander Bruy about 7 years ago
Confirmed on Windows with 23ed0fef (SVN r13016).
But under Linux with UTF-8 locale all works fine.
Updated by Maxim Dubinin almost 7 years ago
This behavior makes conversion from 1bytes encoding (CP1251) to 2 bytes (UTF8) unusable. I've attached two examples, one in CP1251 and another - after conversion in UTF8.
Updated by Giovanni Manghi over 5 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
Updated by Giovanni Manghi almost 5 years ago
- Target version changed from Version 1.7.4 to Version 2.0.0
Also available in: Atom