We have a bash script that sends mail of reports generated . These reports are present in various languages, and currently we have a problem of reports generated in polish language. The reports are getting delivered alright, but are in the CZECH language.
Here is the script : -
#!/bin/bash
export sendmail="/usr/lib/sendmail"
export subject="polish words"
{
echo "To : recipient"
echo Subject: $subject
echo "Content-Type: text/plain; charset=Windows-1250"
cat polish-report
echo ""
echo ""
} | sendmail -t
The windows-1250 Codepage previously differentiated clearly between Polish and czech while sending them through sendmail. But something seems to have changed and we receive polish reports in the czech language. (unintentionally translated)
The locale setting is that of UTF-8 and so is the remote character-set in putty (translation).
POLISH REPORT THAT COMES IN CZECH
Dodavatel: IMPULS Sp. z o.o. Datum požadavku: Datum potřeby: Žadatel: Zadal: popielh Důvod: niestandardowe zamáwienie Poznámka
WHAT IT WOULD LOOK LIKE IN POLISH
Dostawca impulsów Sp. z o.o. Data wniosku: Data potrzebne: Wnioskodawca: Przypisany: popielh Powód: niestandardowe zamáwienie Uwaga
Kindly help in finding out this translation happens from Polish to CZECH.
Regards