brk
brk

Reputation: 50316

Convert latin letters to equivalent decimal value in javascript

I intend to convert latin characters like À ,Ü and so on to it equivalent decimal value. For example Ü has decimal value of 220.

I tried by using parseInt("Ü") but it is returning NAN. Is there anyway I can get the Decimal value of this character using JavaScript. Any help will is truly appreciable.

Upvotes: 0

Views: 124

Answers (2)

RajSharma
RajSharma

Reputation: 1971

you can try this-

var codeA ="Ü".charCodeAt();

you can follow this link also-

Upvotes: 0

Mritunjay
Mritunjay

Reputation: 25892

You can try native CharCodeAt

"Ü".charCodeAt() //returns 220

Upvotes: 1

Related Questions