вторник, 2 июля 2013 г.

Non-Latin chars in ESRI SHAPE attributes

Hello everyone.

As you know ESRI SHAPE files store attributes in DBF files which have dBASE format. Sometime these attributes displayed not correctly in case these have non-Latin chars. For fixing I'm using DBF Commender because that has Converting Tool (http://dbf-software.com/dbf-file.html#Convert). Just open a database and choose  Tools -> Set Code Page... and select necessary code-page. 
FYI. DBF Commander has free and professional version. I used the free version.

Installing Quantum GIS plugins on the Non-Latin account

Hello.
I have a Russian chars account at my home and when I tried to install additional plugins on the QGIS I had problem like this:

 Traceback (most recent call last):
  File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 143, in loadPlugin
    __import__(packageName)
  File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 309, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named openlayers_plugin

Some of the smart humans told that happened because I have non-Latin chars in the account and Python not able to find my personal plugins folder The popular solution is changing an account name and reinstall QGIS.But you may just copy plugin's directory

C:\Users\<User Name>\.qgis\<plugin's directory>

 to the global QGIS folder:

<QGIS installation folder>\apps\qgis\python\plugins

For example,  C:\QGIS\apps\qgis\python\plugins.

And reinstall plugin after, Python is gonna search your plugin in the global QGIS folder first and it will install it propertly.