Hi,

I tried and I thought this should have done the trick really,

This is the output from Notepad.




Now from this text code I extracted out of the saved file with hexedit, translated that to decimal, fiddled with a char array and put that to screen. Bad result, abc was shown nicely though whistle

Some notes:

First notepad embedding some switchcode in the file, I presume this tells a similar application that open this file to use SimHei UTF font. Game Studio seems not to care for this.

Secondly notice that each advanced character is built of three bytes with a start byte (character) that tells the application to sum the next two to the actual character you want to show.

Actually I think JCL or someone of the team have to step in and tell what command codes we have to inject to get the wanted characters shown.


Code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////

// Font with asian characters
FONT* some_font = "SimHei#25b"; // true type, WhatEver, bold, size = 25

STRING* aloha = str_create("#100");

STRING* aloha = ""; // Nullify string, TEXT* crack with non initialized STRING*

// Small text saved with notepad and SimHei font
//               switch?    a, b, c,       asian,      asian,       a, b, c,
// HEX output   ef,bb,bf,	 61,62,63,    e4,bb,a7,	   e4,bc,bf,     61,62,63,  
// Decimal    239,187,191,  97,98,99,  228,187,167,  228,188,191,   97,98,99,

char test[30] = { 239,187,191,97,98,99,228,187,167,228,188,191,97,98,99};

char endtest[30] = { '|',' ','A','n','y',' ','L','u','c','k','?'};

TEXT* greetings_txt =
{
    pos_x = 150;
    pos_y = 250;
    font = some_font;
    string (aloha);
    flags = VISIBLE;
}

////////////////////////////////////////////////////////////////////
function main()
{
    str_cpy(aloha, test); 
    video_mode = 6;
    screen_color.blue = 150;
    wait (-3);
    str_cat(aloha, endtest); 
}







Last edited by DeepReflection; 10/29/08 00:01. Reason: not showing pic

Whoever has the gold makes the rules.