balala wrote: ↑March 8th, 2022, 4:32 pm
No, I think they are not:
Log.png
Ok, but you're not even using the Chinese characters (i.e.
的笑容) the OP is using, because that's the whole issue is about, see a related thread
here as well...

For your personal path (or mine, for that matter) the issue obviously doesn't happen, since those are lower byte characters, however, doing:
LUA:
Code: Select all
function Test(p)
print(p)
return p
end
function Test2(p)
print(p)
end
INI:
Code: Select all
[Variables]
Sec.SaveLocation=C:\Users\Super Idol的笑容\Documents\Rainmeter\Skins\ValliStart\@Resources\Vars.inc
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Measures---
[Func]
Measure=Script
ScriptFile=#@#Scripts\Func.lua
DynamicVariables=1
UpdateDivider=-1
OnUpdateAction=[!Log "[&Func:Test('#Sec.SaveLocation#')]"][!CommandMeasure Func "Test2('#Sec.SaveLocation#')"]
---Meters---
[MeterTest]
Meter=String
FontFace=Consolas
FontColor=255,255,255,255
Padding=5,5,5,5
FontSize=16
AntiAlias=1
Text="Func = #Sec.SaveLocation#"
UpdateDivider=-1
DynamicVariables=1
yields:
LuaStrings.jpg
Anyway, I think I know why this happens. Judging by the post
here, these are multibyte characters, and unsurprisingly the number of missing characters at the end (6) is equal to the 3 Chinese characters multiplied by 2 (I'm guessing, the difference between the 4 bytes needed by each one of them and the "supported" less number of bytes by Rainmeter / Lua, probably 2). So basically, each such character will "eat" 2 characters from the end of the string, resulting in incorrect results. That's probably the case for the related plugin issue in the other thread, by the way.
For the record, the issue happens even for characters like
►:
LuaStrings2.jpg
You do not have the required permissions to view the files attached to this post.