Feature request #2525

Width of field contains cyrillic values

Added by dr - about 7 years ago. Updated over 4 years ago.

Status:Open Start Date:
Priority:Low Due date:
Assigned to:nobody - % Done:

0%

Category:Vectors
Target version:Future Release - Nice to have
Platform:Windows Resolution:
Platform version: Pull Request or Patch supplied:
Status info:0 Tag:

Description

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:
[http://gis-lab.info/share/DR/utf.png]
I guess this is because for encoding cyrillic symbols in utf uses 2 bytes.

example.7z - two shapefiles in different encodings (645 Bytes) Maxim Dubinin, 05/26/2010 09:11 am

History

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 about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Also available in: Atom