iphreeqc/phreeqcpp/encode_as_utf8.sh
Darth Vader 71af2952a3 Squashed 'src/' changes from 813150bc..8a1e3f97
8a1e3f97 Added sleeps after curl -X POST
91d35938 working on SelectedOutput for BMI
4234c11e Closes #48 -- Illegal character encoding in string literal (#49)

git-subtree-dir: src
git-subtree-split: 8a1e3f97118cf39d63ed4e6bcb9ee07ef30075b9
2023-05-26 02:28:11 +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