I have the following code:
#!/bin/bash
task=$1
xml=$(curl -sL "http://login:[email protected]/issues/$task.xml")
id=$(xmllint --xpath '//issue/id/text()' --format - <<<"$xml")
name=$(xmllint --xpath '//issue/subject/text()' --encode utf8 - <<<"$xml")
echo "task #$id - $name"
But when I run it I get encoded cyrillic text like this:
task #10014 - Личный номер клиента
Please help to fix it. I don't want this text encoded