Details
- Version
- 1.4.5 on Linux RHEL 5.6
Event Timeline
We are having issues decryting an encrypted file with gpg (algorithm RSA 2048
encryption) when the file has special international characters. The decrypted
file has special characted decoded incorrectly for example
Sadurní as Sadurnà and García as GarcÃa. The gpg (GnuPG) 1.4.5 is installed on
the LUNIX RHEL 5.6 server.
Please let me know if there is patch/version that supports international
characters.
Do you mean the file name or the content of the file? gpg does not care about
the content and the file name is used verbatim. However, for display purposes
shown meta data (e.g. the informational only file name in the encrypted data) is
converted to the used character set. For any non-attended use you should use
--status-fd to get the meta data which is either UTF-8 (if gpg generated) or
whatever the sending party used.
Thank You for your email.
I mean the content of the file. We have international characters in the names that are part of the file content that we encrypt using the gpg key. The encryption of the file is done in the application where we configure the public key generated using the GNUpg software. The file is transferred using SFTP to the external server and we run scripts to retrieve the file to our server (internal). Then we decrypt the file and the customer retrieves the file from server.
When decrypted (with the gpg key) the international characters are being decrypted incorrectly, not the same characters as in the original file before encryption and adding extra spaces at the end of the name which distorts the location of the fields. The customer that gets this file cannot read it as the columns placement is distorted. The same encrypted file on the external server when brought down to my desktop and decrypt the file with the same gpg key the international characters are correctly decoded.
The filename I have is mhehrfile.csv.pgp and the decrypted filename is mhehfile.csv. The decryption command that we are using to decrypt the file is "/usr/bin/gpg --batch --yes --output $outflpath/$outfl --passphrase $passphrase --decrypt $inflpath/$infl"
EX: International character's name in the original csv.pgp file is
García José deSales Executive -- Data in the original csv.pgp
GarcÃa José deSales Executive -- Data after decrypting the file
Best Regards,
Samatha
As I said, gpg does not mess around with the encoding. The content is an opaque
data for gpg. Your problem is outside of GnuPG.