Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

62
Views
Unicode character in propertyname

I need a response from a public API that contains the letter ø (\u00f8). I'm using angular, and I use an interface to make my responses typed.

export interface Response{
  øl: string; // instead of ø I would like to use \u00f8 (or something similiar)  
}

The problem is I have some international coworkers that do not have ø in their alphabet. Creating strings with Unicode is easy, but how can I do it with property names?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The answer is "Yes they can use unicode entities instead of the characters they cannot type"

In your case they could use \u00F8 for ø

const response = {
"øl":"🍺",
"b\u00C6":"💩",
"💩": "b\u00E6",
"f\u00F8l": "🐎"
}
console.log(response["\u00F8l"])
console.log(response["øl"])
console.log(response["💩"])
console.log(response["føl"])

console.log(Object.entries(response)
  .filter(([key,value]) => key.includes("\u00F8")))
  
  console.log(Object.entries(response)
  .filter(([key,value]) => key.includes("ø")))

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!