Install convmv if you don't have it.
apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
Install convmv if you don't have it.
apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
| import os | |
| import sys | |
| # constants, configure to match your environment | |
| HOST = 'http://localhost:9200' | |
| INDEX = 'es-indexer' | |
| TYPE = 'attachment' | |
| TMP_FILE_NAME = 'tmp.json' | |
| # for supported formats, see apache tika - http://tika.apache.org/1.4/formats.html | |
| INDEX_FILE_TYPES = ['html','pdf', 'doc', 'docx', 'xls', 'xlsx', 'xml', 'odt', 'ods', 'jpg', 'mp4' ] |