Feature request #2525

Width of field contains cyrillic values

Added by dr - over 7 years ago. Updated about 2 months ago.

Status:Open
Priority:Low
Assignee:nobody -
Category:Vectors
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

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

#1 Updated by Alexander Bruy over 7 years ago

Confirmed on Windows with 23ed0fef (SVN r13016).

But under Linux with UTF-8 locale all works fine.

#2 Updated by Maxim Dubinin about 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.

#3 Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#4 Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#5 Updated by Pirmin Kalberer over 4 years ago

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

#6 Updated by Giovanni Manghi about 2 months ago

  • Easy fix? set to No
  • Pull Request or Patch supplied set to No

Also available in: Atom PDF