RaspberryOS: Gradzeichen anzeigen funktioniert nicht.

Gast #6711489
Lesenswert?

Die unten stehenden Versionen des Kommandos raspistill zeigen alle 
nicht das Gradzeichen '°' an.

Wie bekomme ich das Gradzeichen auf das Bild?
1
raspistill -ae 16,0xff,0x808000 -a "Kommentar °" -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg
2

3
Anzeige im Bild: Kommentar ??
4

5
raspistill -ae 16,0xff,0x808000 -a 'Kommentar °' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg
6

7
Anzeige im Bild: Kommentar ??
8

9
raspistill -ae 16,0xff,0x808000 -a 'Kommentar \°' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg
10

11
Anzeige im Bild: Kommentar \??
12

13
raspistill -ae 16,0xff,0x808000 -a "Kommentar \°" -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg
14

15
Anzeige im Bild: Kommentar \??
Gast #6711503
Lesenswert?

Versuche mal testweise:

1.
1
raspistill -ae 16,0xff,0x808000 -a "Kommentar \xC2\xB0" -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg

2.
1
raspistill -ae 16,0xff,0x808000 -a $'Kommentar \uB0' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg

3.
1
raspistill -ae 16,0xff,0x808000 -a 'Kommentar \xB0' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg

Wenn nur Variante 3 geht, ist dein Terminal auf Unicode eingestellt aber 
raspistill nimmt ISO-8859 o.ä. Wenn Nur Variante 1 geht will raspistill 
UTF-8, aber dein Terminal steht auf was anderes (umstellen!), und deine 
Shell ist zu alt für Unicode-Escaping. Wenn Variante 1+2 gehen, dito 
aber die shell kann Unicode-Escaping.
Gast #6711512
Lesenswert?

Ups, falsch escaped, versuch es so:

1.
1
raspistill -ae 16,0xff,0x808000 -a $'Kommentar \xC2\xB0' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg

3.
1
raspistill -ae 16,0xff,0x808000 -a $'Kommentar \xB0' -vf -hf -t 10 --width 640 --height 480 -a 12 -o CAMTerra.jpg

(2 war richtig)

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren