When written in Shanghainese, it is similar as marking the sound in roman letters, simply choose a Chinese character has the same pronunciation as the sound you want to express. So wherever you choose it ok if it sounds the same. People identify the sound, not the meaning of the Chinese character.
killualaura's suggestion is good, there are some accustomed letters and phrases to follow.