04 Return Null: fix a lil fuckup where I saved non-ascii characters
parent
f931426035
commit
8732db2e29
|
@ -106,26 +106,26 @@ $ █
|
|||
</p>
|
||||
<pre class="paper">
|
||||
2000-01-01 Automated Announcement:
|
||||
. × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' '
|
||||
. . +× · . '· . ' *·*o · . , ·.·. o · ' . ·
|
||||
+ , ·· o' ×. , + o , . ' '·· . ·.. ,
|
||||
o o .× .. . . ' · ·' ' · .* ' *
|
||||
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\
|
||||
. × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' '
|
||||
. . +× · . '· . ' *·*o · . , ·.·. o · ' . ·
|
||||
+ , ·· o' ×. , + o , . ' '·· . ·.. ,
|
||||
o o .× .. . . ' · ·' ' · .* ' *
|
||||
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\
|
||||
| '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ;
|
||||
| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|
||||
| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|
||||
|__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\
|
||||
. · + ' *+ ·, ' * ,o . . * * oo , ,o + +
|
||||
× ·,·× ' ·× * × ' , · , * '
|
||||
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *.
|
||||
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·,
|
||||
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '.
|
||||
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .'
|
||||
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .*
|
||||
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · '
|
||||
o · , o . · · . * , . . . ' ,
|
||||
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· +
|
||||
o×· o ,× ., * o · '+, '* o '+, . .. ·' · ·
|
||||
. + . . ' . . . + · +* ' ·' + . .+
|
||||
. · + ' *+ ·, ' * ,o . . * * oo , ,o + +
|
||||
× ·,·× ' ·× * × ' , · , * '
|
||||
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *.
|
||||
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·,
|
||||
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '.
|
||||
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .'
|
||||
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .*
|
||||
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · '
|
||||
o · , o . · · . * , . . . ' ,
|
||||
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· +
|
||||
o×· o ,× ., * o · '+, '* o '+, . .. ·' · ·
|
||||
. + . . ' . . . + · +* ' ·' + . .+
|
||||
|
||||
The outpost diagnostics suite reports no critical problems at any of
|
||||
our outposts. The Lunar Biosphere has, so far, not needed assistance
|
||||
|
|
|
@ -118,26 +118,26 @@ alternating lines on the paper.
|
|||
ilk. Mwuc ulnsfhcmq ifqhuaror fuauwawct aud yotyilu eseqnlefa
|
||||
lrgsknn grcobotct ggrsgalg.
|
||||
</p>
|
||||
<pre class="paper"> . × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' '
|
||||
. . +× · . '· . ' *·*o · . , ·.·. o · ' . ·
|
||||
+ , ·· o' ×. , + o , . ' '·· . ·.. ,
|
||||
o o .× .. . . ' · ·' ' · .* ' *
|
||||
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\
|
||||
<pre class="paper"> . × . .' . * · , ' · * ×·*' o .o' + × ×× , · . *+' '
|
||||
. . +× · . '· . ' *·*o · . , ·.·. o · ' . ·
|
||||
+ , ·· o' ×. , + o , . ' '·· . ·.. ,
|
||||
o o .× .. . . ' · ·' ' · .* ' *
|
||||
|¯¯| |¯¯| /¯\ |¯¯¯¯¯|¯¯¯¯\¯¯\/¯¯/|¯¯\|¯|¯¯¯¯|¯¯| |¯¯|\¯¯\/¯|¯¯¯¯| /¯\ |¯¯¯¯¯\
|
||||
| '-' |/ . \| |) | |) \ / | ' | ==| VV | \ / ==;/ . \| |) ;
|
||||
| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|
||||
| .–. / A | __| __/| | | . | ==;\ / | || ==/ A | <
|
||||
|__| |_/__.-._|__| |__| |__| |__|\_|____| \_/\_/ |__||___/__.-._|__|\__\
|
||||
. · + ' *+ ·, ' * ,o . . * * oo , ,o + +
|
||||
× ·,·× ' ·× * × ' , · , * '
|
||||
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *.
|
||||
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·,
|
||||
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '.
|
||||
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .'
|
||||
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .*
|
||||
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · '
|
||||
o · , o . · · . * , . . . ' ,
|
||||
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· +
|
||||
o×· o ,× ., * o · '+, '* o '+, . .. ·' · ·
|
||||
. + . . ' . . . + · +* ' ·' + . .+</pre>
|
||||
. · + ' *+ ·, ' * ,o . . * * oo , ,o + +
|
||||
× ·,·× ' ·× * × ' , · , * '
|
||||
. , . o o /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ /¯¯¯¯¯¯\ ,* .,× *.
|
||||
, ,* | ___ || __ || __ || __ |.+ ·. , ',×·,
|
||||
× . . . · ¯¯ .' ;| | | || | | || | | | · ' ' '.
|
||||
. + . + . + .* .* | | | || | | || | | | . . ·. .×. .'
|
||||
. +. , .* *--,| ¯¯ || ¯¯ || ¯¯ | . .*
|
||||
,·.' ' ,+ |________| \______/ \______/ \______/ ×, ' · '
|
||||
o · , o . · · . * , . . . ' ,
|
||||
, · × *· ·o. ' ,. .· ' . +, . ., ×' '· +
|
||||
o×· o ,× ., * o · '+, '* o '+, . .. ·' · ·
|
||||
. + . . ' . . . + · +* ' ·' + . .+</pre>
|
||||
<p class="copyright">
|
||||
Copyright © 2023-2025 Jan Danielzick (aka. BodgeMaster) – All rights reserved.
|
||||
</p>
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
import sys
|
||||
|
||||
document = open(sys.argv[1], "rb")
|
||||
contents = document.read()
|
||||
document.close()
|
||||
|
||||
for char in contents:
|
||||
if char > 127:
|
||||
print(sys.argv[1] + ": Non-ascii character found.")
|
||||
sys.exit(0)
|
|
@ -0,0 +1,15 @@
|
|||
import sys
|
||||
|
||||
document = open(sys.argv[1], "rb")
|
||||
contents = document.read()
|
||||
document.close()
|
||||
|
||||
string = contents.decode("utf8")
|
||||
|
||||
i = 0
|
||||
while i<len(string):
|
||||
if ord(string[i]) > 127:
|
||||
string = string[:i] + "&#" + str(ord(string[i])) + ";" + string[i+1:]
|
||||
i = i+1
|
||||
|
||||
print(string, end="")
|
Loading…
Reference in New Issue