Merge pull request #6 from iberianpig/fix/use-utf8-for-stdout
fix: force UTF-8 encoding for stdio streams
This commit is contained in:
commit
bdbf015dd5
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ module ModelContextProtocol
|
|||
def initialize(server)
|
||||
@server = server
|
||||
@open = false
|
||||
$stdin.set_encoding("UTF-8")
|
||||
$stdout.set_encoding("UTF-8")
|
||||
super
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue