<div dir="ltr"><div class="gmail_extra"><div>Ciao,<br><br></div><br><div class="gmail_quote">Il giorno 28 settembre 2017 11:29, Massimiliano Rosi <span dir="ltr"><<a href="mailto:massimiliano.rosi@gmail.com" target="_blank">massimiliano.rosi@gmail.com</a>></span> ha scritto:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div><div><br></div><div>invece su un pc embedded con busybox e python3.6 compilato dai sorgenti perfettamente funzionante lo stesso comando genera un errore, che non capisco come risolvere:</div><div>
<p class="gmail-m_4119307592957518058gmail-p1"><span class="gmail-m_4119307592957518058gmail-s1">>>> print ('\u00b0') <span class="gmail-m_4119307592957518058gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-m_4119307592957518058gmail-p1"><span class="gmail-m_4119307592957518058gmail-s1">Traceback (most recent call last):</span></p>
<p class="gmail-m_4119307592957518058gmail-p1"><span class="gmail-m_4119307592957518058gmail-s1"><span class="gmail-m_4119307592957518058gmail-Apple-converted-space"> </span>File "<stdin>", line 1, in <module></span></p>
<p class="gmail-m_4119307592957518058gmail-p1"><span class="gmail-m_4119307592957518058gmail-s1">UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 0: ordinal not in range(128)</span></p></div></div></div></blockquote><div>tempo fa ho avuto lo stesso problema e l'ho risolto impostando il
giusto "locale" per l'utente con il quale viene lanciato lo script<br><br>prova a dare un'occhiata anche a questo link che parla proprio di busybox <a href="http://buildroot-busybox.2317881.n4.nabble.com/User-question-UTF-8-td112683.html">http://buildroot-busybox.2317881.n4.nabble.com/User-question-UTF-8-td112683.html</a><br> </div><div><br></div><div>Francesco<br></div><div>-- <br></div></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">"Unix IS user friendly. It's just selective about who its friend are"<br><br>"Nevertheless I still think it’s a bad idea to make things harder for ourselves
if we can avoid it."<br><span><br>"C is quirky, flawed, and an enormous success."<br> -- Dennis Ritchie<br></span><br><span>"Shipping is a feature. A really important feature. Your product must have it."<br><br>"</span><span>There is no such a thing as a temporary change or workaround: In most cases, workarounds are tech debt."<br><br></span></div><div>"La gatta frettolosa ha fatto i gattini ciechi"<br><br></div></div></div></div></div></div></div></div></div></div>
</div></div>