Encoding while import Signatures

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
TKowalski
Posts: 17
Joined: Fri Oct 09, 2015 12:45 pm

Encoding while import Signatures

Post by TKowalski »

I've problem while importing signatures.
My script:
#!/bin/bash
FILES=/opt/import/sig/*
for f in $FILES
do
  signature=`cat $f`
  name=`echo $f|sed 's//opt/import/sig///g'`
  echo $name
  zmprov ma $name zimbraPrefMailSignatureEnabled TRUE
  zmprov ma $name zimbraPrefMailSignatureStyle internet
  zmprov ma $name zimbraPrefMailSignature "$signature"
done


all is ok but I get wrong national characters. I've signatures in UTF8 files. Where is the problem ?
TKowalski
Posts: 17
Joined: Fri Oct 09, 2015 12:45 pm

Encoding while import Signatures

Post by TKowalski »

Sorry, I found problem. I set locale LC_ALL to pl_PL.UTF8 and its ok now. ;)
nirt
Advanced member
Advanced member
Posts: 76
Joined: Sat Sep 13, 2014 1:54 am

Re: Encoding while import Signatures

Post by nirt »

Hi,

I have the same problem, using zimbra 8.8.15 and centos 7, can you give detail how do you solved, what have you cahnged and if cahnging this config any is wrong after this change?

thanks
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Encoding while import Signatures

Post by phoenix »

nirt wrote:Hi,

I have the same problem, using zimbra 8.8.15 and centos 7, can you give detail how do you solved, what have you cahnged and if cahnging this config any is wrong after this change?

thanks
Doesn't the answer above your post solve the problem?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply