Fix shapefile encoding in QgsVectorFileWriter
WIP
Merge branch 'master' into colour_functions
Colour functions and en-US help files implemented.
Fixed indentation in qgsexpression.cpp
Code name consistency fix and unit tests for functions
Fixed tooltip text throughout.  Renamced combo box named cbxEncoding to cmbEncoding
Merge branch 'master' into delimited_text_bug_fixes
Adding testing feature id to test script
Empty records cleaned from layer
More testing and bug fixes

Regular expression delimiter:  fixed non-intuitive behaviour of not
including capture groups in the returned fields, and improved behaviour
for anchored regular expressions.  Added test cases for handling of
regular expressions.

File encoding: Selected file encoding was being ignored.  Fixed and
added test cases for file encoding.

Bad formatted quoting: Fixed handling of badly formatted quotes (eg
unclosed quotes).  Added test case.

Field names: Where a file had duplicate or blank field names it was
not possible to reliably set the names of X,Y,WKT fields.  Relocated
field name handling to simpler common code in QgsDelimitedTextFile, with
automatic renaming of fields with ambiguous or missing names.  Add test
case for field renaming

User interface fixes: Fixed tooltip and other messages throughout.
Changed encoding combo box to be alphabetically sorted. Fixed data
sample to be refreshed when encoding changed.
Minor change to tooltip message
Error message fixes and more regexp testing
[Fix #7639] Don't compare TypeName when comparing fields
Additional documentation
Minor help file improvements
fix some memory leaks
Merge pull request #492 from borysiasty/encoding_write_fix

Fix shapefile encoding in QgsVectorFileWriter
[pyqgis-console] fix indentation
[pyqgis-console] shows also derived class name in object browser widget