openmultiplayer / server-beta-old

open.mp server beta releases
142 stars 14 forks source link

[BUG]: Textdraw does not support characters like áéóúűüö #102

Closed zsoolt997 closed 2 years ago

zsoolt997 commented 2 years ago

Description

Textdraw does not support characters like áéóúűüö

How to re-produce this bug

Tell us a how to re-produce this bug in steps for example:

  1. Create a textdraw with accent characters in and show it:
    
    static Text:gs_TD_Login;

public OnPlayerConnect(playerid) { gs_TD_Login = TextDrawCreate(287.999908, 132.755462, "áéóúűüö"); TextDrawLetterSize(gs_TD_Login, 0.261664, 1.770073); TextDrawAlignment(gs_TD_Login, 1); TextDrawColor(gs_TD_Login, -1); TextDrawSetShadow(gs_TD_Login, 1); TextDrawSetOutline(gs_TD_Login, 0); TextDrawBackgroundColor(gs_TD_Login, -5963682); TextDrawFont(gs_TD_Login, 3); TextDrawSetProportional(gs_TD_Login, 1); TextDrawSetShadow(gs_TD_Login, 1);

TextDrawShowForPlayer(playerid, gs_TD_Login);

SendClientMessage(playerid, -1, "áéűúőóüö");
return true;

}


2. *See the result*

# Relevant log output

![aaaaa](https://user-images.githubusercontent.com/22081818/172047867-67c3f1d0-8707-47ec-bfa6-a20601aa30ea.png)

*Sent a client message with those characters and they shown as they supposed to.*

# open.mp server version

*Build 5*

# Operating system or distribution

*Windows 11 Pro 21H2 22000.708*

# Contact information

*zsoolt997#4106*

# Additional information

*I have encountered this bug in the past in SAMP and managed to solve this playing with file encodings, but that is not working here.
Tried with UTF-8, and Windows 1250, neither does work.*
zsoolt997 commented 2 years ago

Solved, I forgot I have to use an include to fix this.