mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2017-02-20
This commit is contained in:
@ -219,6 +219,20 @@ dspace=# update metadatavalue set text_value = 'https://dx.doi.org/10.15446/
|
||||
<li>Fix label of CCAFS subjects in Atmire Listings and Reports module</li>
|
||||
<li>Help Sisay with SQL commands</li>
|
||||
<li>Help Paola from CCAFS with the Atmire Listings and Reports module</li>
|
||||
<li>Testing the <code>fix-metadata-values.py</code> script on macOS and it seems like we don&rsquo;t need to use <code>.encode('utf-8')</code> anymore when printing strings to the screen</li>
|
||||
<li>It seems this might have only been a temporary problem, as both Python 3.5.2 and 3.6.0 are able to print the problematic string &ldquo;Entwicklung &amp; Ländlicher Raum&rdquo; without the <code>encode()</code> call, but print it as a bytes when it <em>is</em> used:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ python
|
||||
Python 3.6.0 (default, Dec 25 2016, 17:30:53)
|
||||
&gt;&gt;&gt; print('Entwicklung &amp; Ländlicher Raum')
|
||||
Entwicklung &amp; Ländlicher Raum
|
||||
&gt;&gt;&gt; print('Entwicklung &amp; Ländlicher Raum'.encode())
|
||||
b'Entwicklung &amp; L\xc3\xa4ndlicher Raum'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>So for now I will remove the encode call from the script (though it was never used on the versions on the Linux hosts), leading me to believe it really <em>was</em> a temporary problem, perhaps due to macOS or the Python build I was using.</li>
|
||||
</ul></description>
|
||||
</item>
|
||||
|
||||
|
Reference in New Issue
Block a user