<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UTF-8 Tipps | SYN-FLUT.de</title>
	<atom:link href="https://www.syn-flut.de/thema/utf-8/feed" rel="self" type="application/rss+xml" />
	<link>https://www.syn-flut.de/thema/utf-8</link>
	<description>ein Blog über Linux, Open Source, Netzwerk, UC und mehr...</description>
	<lastBuildDate>Wed, 08 May 2019 07:53:19 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>

<image>
	<url>https://www.syn-flut.de/wp-content/uploads/2016/03/cropped-Favicon-1-32x32.png</url>
	<title>UTF-8 Tipps | SYN-FLUT.de</title>
	<link>https://www.syn-flut.de/thema/utf-8</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>QuickTipp: Rahmen statt &#8220;lqqk&#8221; in der PuTTY Shell</title>
		<link>https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell</link>
					<comments>https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 07 May 2019 22:32:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux-Tools]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[lqqk]]></category>
		<category><![CDATA[ncurses]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[terminal-type string]]></category>
		<category><![CDATA[UTF-8]]></category>
		<guid isPermaLink="false">https://www.syn-flut.de/?p=301</guid>

					<description><![CDATA[<p>Viele kennen das Thema, anderen ist es vielleicht noch gar nie aufgefallen: Wenn man sich mittels PuTTY (oder dessen erweiterte Variante: KiTTY) unter Windows auf einen Ubuntu Linux Server verbindet, werden Linien in Programmen üblicherweise nicht als solche &#8230; </p>
<div class="more-link-wrapper"><a href="https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell" class="more-link">Continue reading<span class="screen-reader-text"> "QuickTipp: Rahmen statt &#8220;lqqk&#8221; in der PuTTY Shell"</span></a></div>
<p>Der Beitrag <a href="https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell">QuickTipp: Rahmen statt &#8220;lqqk&#8221; in der PuTTY Shell</a> erschien zuerst auf <a href="https://www.syn-flut.de">SYN-FLUT.de</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Viele kennen das Thema, anderen ist es vielleicht noch gar nie aufgefallen: Wenn man sich mittels PuTTY (oder dessen erweiterte Variante: KiTTY) unter Windows auf einen Ubuntu Linux Server verbindet, werden Linien in Programmen üblicherweise nicht als solche angezeigt, stattdessen werden Buchstaben dafür verwendet. Sichtbar wird das in Programmen, die Rahmen zeichnen: zum Beispiel <a href="https://www.syn-flut.de/logdateien-monitoren-multitail">multitail</a>, tmux oder iftop. So sieht das dann üblicherweise aus:</p>



<span id="more-301"></span>



<div class="wp-block-image"><figure class="aligncenter"><img fetchpriority="high" decoding="async" width="1024" height="605" src="https://www.syn-flut.de/wp-content/uploads/2019/05/image-1024x605.png" alt="" class="wp-image-305" srcset="https://www.syn-flut.de/wp-content/uploads/2019/05/image-1024x605.png 1024w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-300x177.png 300w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-768x454.png 768w, https://www.syn-flut.de/wp-content/uploads/2019/05/image.png 1032w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Der &#8220;Rahmen&#8221; innerhalb von multitail ist kaum sichtbar. Er besteht aus vielen &#8220;lqqk&#8221;, &#8220;qqqq&#8221; und an den Seiten &#8220;x&#8221;.</figcaption></figure></div>



<p>Wenn das passiert, wird ein &#8220;Fallback mode&#8221; verwendet, da auf die korrekten Zeichen nicht zugegriffen werden konnte. Zwei Dinge sind dafür üblicherweise verantwortlich:</p>



<h2 class="wp-block-heading">Putty Zeichensatz und &#8220;terminal-type string&#8221;</h2>



<p>Die Software <a href="https://de.wikipedia.org/wiki/Ncurses">ncurses </a>ist für die Zeichnung von Boxen und Rahmen unter Linux zuständig. Diese wertet den &#8220;terminal-type string&#8221; aus, mit welchem sich der Client verbindet. PuTTY (und auch <a href="https://www.9bis.net/kitty">KiTTY</a>) hat hier aus Kompatibilitätsgründen &#8220;xterm&#8221; eingestellt, das sollte durch &#8220;putty&#8221; ersetzt werden. Ebenso sollte UTF8 als Remote-Zeichensatz eingestellt sein.</p>



<div class="wp-block-image"><figure class="aligncenter is-resized"><img decoding="async" src="https://www.syn-flut.de/wp-content/uploads/2019/05/image-2.png" alt="" class="wp-image-307" width="388" height="381" srcset="https://www.syn-flut.de/wp-content/uploads/2019/05/image-2.png 602w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-2-300x295.png 300w" sizes="(max-width: 388px) 100vw, 388px" /><figcaption>UTF-8 Zeichensatz</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter is-resized"><img decoding="async" src="https://www.syn-flut.de/wp-content/uploads/2019/05/image-1.png" alt="" class="wp-image-306" width="389" height="382" srcset="https://www.syn-flut.de/wp-content/uploads/2019/05/image-1.png 602w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-1-300x295.png 300w" sizes="(max-width: 389px) 100vw, 389px" /><figcaption>&#8220;putty&#8221; als Terminal-type string</figcaption></figure></div>



<h2 class="wp-block-heading">Zeichensatz auf dem Server korrekt einstellen</h2>



<p>Eventuell ist auch noch der Zeichensatz falsch eingestellt. Überprüft werden kann das mittels </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; gutter: false; title: ; notranslate">
locale
</pre></div>


<p>Beheben lässt sich es mit<br></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; gutter: false; title: ; notranslate">
export LC_ALL=en_US.utf8
</pre></div>


<p></p>



<p>Damit diese Einstellung auch bei der nächsten Verbindung noch vorhanden ist, muss sie in die .bashrc eingetragen werden. (Oder .zshrc, falls ihr zsh verwendet.)</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; gutter: false; title: ; notranslate">
echo &quot;export LC_ALL=en_US.utf8&quot; &gt;&gt; ~/.bashrc
</pre></div>


<p>Ab jetzt sollte PuTTY Rahmen ausgeben können:</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="631" src="https://www.syn-flut.de/wp-content/uploads/2019/05/image-4-1024x631.png" alt="" class="wp-image-318" srcset="https://www.syn-flut.de/wp-content/uploads/2019/05/image-4-1024x631.png 1024w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-4-300x185.png 300w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-4-768x473.png 768w, https://www.syn-flut.de/wp-content/uploads/2019/05/image-4.png 1055w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Ja, das ist der gleiche Screenshot wie oben &#8211; nur diesmal mit funktionierendem Zeichensatz</figcaption></figure>



<p>Jetzt sollte die Zeichnung von Rahmen fehlerfrei funktionieren.</p>
<p>Der Beitrag <a href="https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell">QuickTipp: Rahmen statt &#8220;lqqk&#8221; in der PuTTY Shell</a> erschien zuerst auf <a href="https://www.syn-flut.de">SYN-FLUT.de</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.syn-flut.de/quicktipp-rahmen-statt-lqqk-in-der-putty-shell/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
