Skip to content

Commit

Permalink
Merge pull request #144 from AKACC/master
Browse files Browse the repository at this point in the history
pre-set utf-8 to prevent error due to different encoding
  • Loading branch information
Tuhinshubhra authored Aug 16, 2022
2 parents 9c40fbb + d17e0e8 commit ce085fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmseekdb/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

import cmseekdb.basic as cmseek

# For the enviroument that doesn't use utf8
import sys
import io
sys.stdout = io.open(sys.stdout.fileno(), 'w', encoding='utf8')

def target(target):
## initiate the result
target = target.replace('https://','').replace('http://', '').split('/')
Expand Down

0 comments on commit ce085fe

Please sign in to comment.