Fetching details from the dictionary...

kanji used as a phonetic symbol, instead of for the meaning; phonetic-equivalent character; substitute character; ateji
kanji used for their meaning, irrespective of reading
日本語には宛字が多く外来語の表記に使われてきた。
Japanese has many ateji, which have been used for writing loanwords.
昔の文献では宛字が頻繁に見られる。
Ateji appear frequently in old documents.
宛字の読み方は漢字の意味と一致しないことがある。
The reading of ateji sometimes does not match the meaning of the kanji.