• Reza Sarwari 7
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hello All,

we send an email to salesforce with a content generated from a HTML form. The form includes content what website visitors can type in fields like "Firstname" "Lastname" etc.

A Salesforce Email Service (with an apex class) reads the content and saves it in the salesforce database. (Below is the code) 

The problem is that characters like "ä" are stored in salesforce like "�".

I tried already this before saving the content in the database: EncodingUtil.urlEncode(sBody, 'utf-8');

But it still dont work.

Many thanks in advance for your help!



 






global class EmailServiceKontact implements Messaging.InboundEmailHandler {
    // public static String emailFormat; 
    global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
        
        Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();
        String emailSender = email.replyTo;
        String emailSub = email.subject;  
        
        // <Contact Start>
        String emailBody = email.htmlBody;




 
Hello There, 
currently I only can schedule apex classes hourly like: 10:00, 11:00 ....
Is it possible to schedule them on: 10:45 ?

Thanks!
Reza
Hello There, 
currently I only can schedule apex classes hourly like: 10:00, 11:00 ....
Is it possible to schedule them on: 10:45 ?

Thanks!
Reza