diff options
Diffstat (limited to 'devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py')
-rw-r--r-- | devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py b/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py index 93ab4d5544..6cb93a7c84 100644 --- a/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py +++ b/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py @@ -538,7 +538,11 @@ def translateQuoteToAsciiProper(cellObj, pSheetName): # print '[Debug] ', newQuoteReplaceSpecials #newQuoteReplaceSpecialsDec = newQuoteReplaceSpecials.decode(gTargetEncoding) newQuoteReplaceSpecialsRetStr = '' - newQuoteReplaceSpecialsRetStr = newQuoteReplaceSpecials.encode(gTargetEncoding) + try: + newQuoteReplaceSpecialsRetStr = newQuoteReplaceSpecials.encode(gTargetEncoding) + except Exception as e: + print "[Error] Could not encode text::" + str(e) + newQuoteReplaceSpecialsRetStr = "??????????" #try: # newQuoteReplaceSpecialsRetStr = newQuoteReplaceSpecials.encode(gTargetEncoding) #except: @@ -869,6 +873,9 @@ def main(argsCL): elif sys.argv[i] == '--trace': print "[Info] Trace mode enabled (more debug messages)." gTraceModeEnabled = True + elif argsCL[i][:1] == '-': + invalidSyntax = True + break if not pathToQuoteExcelFile: invalidSyntax = True |