Decode Google Contacts Vcf Script
From Fxp Wiki
Convert Accented names in Android contacts file
If you want to export all your contacts, google (android) creates a .vcf file containing all your data.
Unfortunately, some of the data are encoded (usually when they contain special characters, like accents, and use them in utf-8)
To decode them, you can use this python script in Notepad++
Requirements
- Notepad++ (free and opensource text editor)
- The python script plugin (install via the plugin manager)
- (if you use this for the first time don't forget to Encoding> encode Utf8)
Usage
- Plugins > python script >new script
- Save as whatever name you want (mine is "vcfDecode"
- Paste the code, save the file, close it
- Open your .vcf file (change the encoding if necessary Encoding > encode Utf-8)
- Plugin > python script > scripts > vcfDecode (if you named it this way)
The text should be decode !!
""" Author: fxparlant page: http://www.fxparlant.net/Decode_Google_Contacts_Vcf_Script Description: convert hex to text the encoded parts of a google / android contacts file (.vcf) Requirement: - Notepad++ text free open source text editor for windows - Python script plugin (available from plugin manager in Notepad++) """ def regExFunc( lineNum, match ): console.write("lineNum="+ str(lineNum) + " MATCH=" + match.group(1)) #console.write(match.group(1)) editor.gotoLine(lineNum) linetxt = editor.getCurLine() x = linetxt.find(match.group(1)) console.write("x="+ str(x)) #editor.getLineEndPosition(lineNum) editor.setSelectionStart(editor.positionFromLine(lineNum)+x) editor.setSelectionEnd(editor.getLineEndPosition(lineNum)) notepad.runMenuCommand('TextFX Convert', 'Convert Hex to text') editor.pysearch(":=(.*)", regExFunc )
