sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.58k stars 268 forks source link

For some reason the demos are all blank boxes and text #202

Open MostHated opened 5 years ago

MostHated commented 5 years ago

Hey there, I followed the instructions for linux but unfortunately the demos are all coming out like this?

I did the steps as follows:

  cd ~/_dev/sdk/sciter-sdk/bin.gtk/x64
  export LIBRARY_PATH=$PWD
  echo $PWD >> libsciter.conf
  sudo cp libsciter.conf /etc/ld.so.conf.d/
  sudo ldconfig
  ldconfig -p | grep sciter
    >> libsciter-gtk.so (libc6,x86-64) => /home/mosthated/_dev/sdk/sciter-sdk/bin.gtk/x64/libsciter-gtk.so
  go get -x github.com/sciter-sdk/go-sciter
  cd ~/_dev/programming/go/src/github.com/sciter-sdk/go-sciter/examples/demoes/08
  go run demo9.go
  cd ..
  cd 07
  ls
  go run demo7.go

Demo 7 is the one in the first image. Perhaps I am missing something?

VanillaScent commented 5 years ago

Might be because it's not encoded in UTF-8. Languages with special characters need unicode, so load in the file as UTF-8.