Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

435
Visualizações
How do I find the UTF-8 version of the Octal '\033c'

I am working on a Javscript project with the following code...

process.stdout.write('\033c');

The IJ tooltip says

Octal escape sequences are not allowed

So I am pretty sure I just need to convert the \033c to UTF-8 but since it is kind of a weird char I am not sure I am understanding things properly.

I tried this...

process.stdout.write("\\033c");

per this but it still has the same issue

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This has nothing to with UTF-8. \033c is supposed to be two characters: \033 (the ESC control character, code point U+001B) and c (a regular lower-case c).

The error says that octal escape sequences are not allowed, so let's use hex instead. Octal 33 converted to hexadecimal is 1B, so you can use \x1b*. In combination with the c you get \x1bc.

For more information, see the section about escape sequences on MDN.

*: You could also use \u001b instead of \x1b but for characters in the range of U+0000 to U+00FF it doesn't matter.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda