Thanx for reply TIG & Fredo
I am from Turkey nd there are 'ı,Ć¼,ƶ' letters in my sytstem.
I've written
- a = ENV["LOCALAPPDATA"]
- b = a.force_encoding("UTF-8")
- b.encoding
to ruby conlose.
but it has failed again.
a = ENV["LOCALAPPDATA"]
b = a.force_encoding("UTF-8")
Error: #<RuntimeError: can't modify frozen String>
<main>:in force_encoding' <main>:in
<main>'
SketchUp:1:in `eval'
b.encoding
Error: #<NoMethodError: undefined method encoding' for nil:NilClass> <main>:in
<main>'
SketchUp:1:in `eval'
then, i ve written
- c = LibFredo6.get_dir_from_ENV("LOCALAPPDATA")
- c.encoding
to ruby console, but it has failed again
c = LibFredo6.get_dir_from_ENV("LOCALAPPDATA")
Error: #<ArgumentError: invalid byte sequence in UTF-8>
c:/users/ali yƶnder/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/top_libfredo6.rbe:43:in gsub' c:/users/ali yƶnder/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/fredo6_!libfredo6/top_libfredo6.rbe:43:in
get_dir_from_ENV'
<main>:in <main>' SketchUp:1:in
eval'
c.encoding
Error: #<NoMethodError: undefined method encoding' for nil:NilClass> <main>:in
<main>'
SketchUp:1:in `eval'
Do u have any suggestion?
thanx all