Jump to content
  • 0

utf ou ansi?


millu

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/18/20
  • Last Seen:  

Aew povo....
Estou traduzindo alguns npcs.
Então a pergunta:
Qual formato de arquivo deve ser o NPC?
- porque os scripts que baixei para aprender, estão em UTF-8 (sem boom), mas se coloco um texto acentuado, aparece um caracter hexa no jogo, então preciso mudar o arquivo para ANSI.
Estou desenvolvendo e testando em windows.
Se estiver correto ANSI em windows, e se eu hostear (unix) o que estou fazendo , vai funcionar correto?
Agradeço a atenção que possam me dar.

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   62
  • Joined:  02/04/19
  • Last Seen:  

Todos tem que ficar em ANSI, por causa das acentuações...

E sim tanto no windows ou no linux o texto dos npcs irá aparecer corretamente com o ANSI.

Edited by M a p l e
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/18/20
  • Last Seen:  

3 hours ago, M a p l e said:

Todos tem que ficar em ANSI, por causa das acentuações...

E sim tanto no windows ou no linux o texto dos npcs irá aparecer corretamente com o ANSI.

Muitíssimo obrigado.

Mais um detalhe;
como fazer para new line ( \r) , dentro da string... já tentei todas as opções e não funciona, justamente por estar em ansi.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  12/14/14
  • Last Seen:  

On 7/8/2021 at 11:28 PM, millu said:

Muitíssimo obrigado.

Mais um detalhe;
como fazer para new line ( \r) , dentro da string... já tentei todas as opções e não funciona, justamente por estar em ansi.

No caso, a melhor forma (que é como está até mesmo nos npcs do próprio jogo) é fechar a string e começar um novo mes "";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...