iphreeqc/encode_as_utf8.sh
Darth Vader 35dec7bafc Squashed 'phreeqcpp/' changes from e7c12e1..b12de1f
b12de1f Added sleeps after curl -X POST
fb55642 working on SelectedOutput for BMI
a050758 Closes #48 -- Illegal character encoding in string literal (#49)

git-subtree-dir: phreeqcpp
git-subtree-split: b12de1f7f0eadb7b6153bffca9d0412801d2e132
2023-05-26 02:32:21 +00:00

7 lines
238 B
Bash
Executable File

#!/bin/sh
# see https://en.wikipedia.org/wiki/Windows-1252
iconv --to-code=UTF-8 --from-code=WINDOWS-1252 print.cpp > print.utf-8.cpp
if grep -q '^// -\*- coding: windows-1252 -\*-$' print.utf-8.cpp; then
sed -i '1d' print.utf-8.cpp
fi