DllExport icon indicating copy to clipboard operation
DllExport copied to clipboard

Use a custom name with a mixture of Japanese and English, but do not display Japanese

Open crazyGod666 opened this issue 1 year ago • 2 comments

I have written an ACMI document, which includes the following content: FileType=text/acmi/tacview FileVersion=2.2 0,ReferenceTime=2011-06-02T05:00:00Z,Author=Au,Title=Tac_Task1 1,T=100|100|2000|0|||||,Name=A-7,Color=Red 2,T=100|100|2000,Name=A-7,Color=Blue,ShortName=TestNamesaサービス私dsaandName #0 1,T=100.5|||0|0|0|40|40|90,Label=2 #20 1,T=101|100.5|,AOS=45,FocusedTarget=2,Radius=100 When I open it by Tacview,I can not see the object's total ShortName on label which the id is 2. What is the reason?Should I add Japanese font?

crazyGod666 avatar May 06 '24 14:05 crazyGod666

image +

crazyGod666 avatar May 06 '24 14:05 crazyGod666

Hello,

Depends on how ShortName was marshaled in your code. Have you seen https://github.com/3F/DllExport/wiki/Quick-start#about-data-types

For example, using Conari you can access it through TCharPtr etc.

[DllExport]
public static void init(TCharPtr shortName)
{
    if(shortName == "Achilles") ...
}

TCharPtr_8_16bit

NativeString<TCharPtr> ns = new("Achilles");

TCharPtr.Unicode = true / false; // runtime -> WCharPtr / CharPtr

TCharPtr_8_16bit_2

Please clarify the case.

upd: illustration to the original

TestNamesaサービス私dsaandName

jp_16bit

jp_8bit

3F avatar Jun 04 '24 20:06 3F