2014-10-02 19 views
2

我需要幫助在我的電子郵件輸出中添加已註冊的符號,因此當客戶收到電子郵件時,他們在主題行中的第一個單詞「FSFS」旁邊看到註冊的symobil,我嘗試使用usinf & REG但它不工作。如何在電子郵件主題行中添加已註冊的符號

String fullName = profile.getAddress().getFirstName() + " " + profile.getAddress().getLastName(); 
     String html = b.toString() 
     .replace("[insertName]", fullName) 
     .replace("[trackingnumber]", claim.getClPicNbr().toString()) 
     .replace("[MM/DD/YY]", dateNow) 
     .replace("[CLAIMID]", claim.getClId().toString()); 

     email.postMail(recipients, "[email protected]", 
        "FSFS&reg Insurance Claim Received",** I need the registered symbol here 
        html); 

回答

3

電子郵件並不(總是)基於HTML,並且您正在使用的實體有®(再次,沒有真正的電子郵件)。你可以使用符號本身或統一\u00AE通過改變這個

"FSFS&reg Insurance Claim Received" 

"FSFS® Insurance Claim Received" 

"FSFS\u00AE Insurance Claim Received" 
相關問題