function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pChanpChan 

Phonetic Alphabets problem in custom settings

Hi all,

 

I have saved a few records in a custom setting object which holds a langauge (Name field) and its corresponding language key/code (Language code field). (eg: for English, en). But for spanish, i have saved the language(in Name field) as 'Español' and code as 'es'. When i try to access the code for Español in apex class using the getInstance() method, the language code is not returned and hence Null pointer error. For other custom setting records which have normal text values like English, German..etc, the language code is returned correctly . Is this because of any problem with 'Phonetic Alphabet' which in my case is " ñ " in Español? 

 

Thanks,

pChan