Skip to content

Commit

Permalink
fix utf-8 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorioMonari committed Mar 30, 2023
1 parent b29a4c2 commit e49b725
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ class PythonApiRunner{
relativePath="./resources/app/PY/install"
}

//var relativePath="./PY/my2sec/main"
var cwd=path.resolve(relativePath);
this.log.info("Pyexecutable path: "+cwd)

this.pyProcess=spawn("./API_my2sec",[],{cwd});
//this.pyProcess=spawn("python",["./API_my2sec.py"],{cwd});
this.pyProcess=spawn("./API_my2sec",[],{
cwd:cwd,
stdio: ['pipe', 'pipe', 'pipe'],
encoding: 'utf-8'
});
this.log.info("** started python api")
//on new data chunk
this.pyProcess.stdout.on("data",(data)=>{
Expand Down
1 change: 1 addition & 0 deletions docs/draft_material/.$MY2SEC_MAP.drawio.dtmp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/draft_material/MY2SEC_MAP.drawio

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions img/Nuovo documento di testo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ My2sec client upload events
-

<- SUPPONIAMO CHE LE TRIPLE TE LE DA'


PREFIX my2sec: <http://www.vaimee.it/ontology/my2sec#>
SELECT (COUNT(?s) AS ?nusers) WHERE { GRAPH <http://www.vaimee.it/my2sec/members> { ?s my2sec:username ?o }}

0 comments on commit e49b725

Please sign in to comment.