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?
CodePudding user response:
The answer is "Yes they can use unicode entities instead of the characters they cannot type"
In your case they could use \u00F8 for ø