Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [encoding]

The tag has no usage guidance.

0
votes
1answer
30 views

Marketing Cloud Data Extract into the correct File Encoding format

I have created a Data Extract activity exports a .csv file containing records from my Data Extension. The file is in the wrong File Format so I have requested Salesforce activate additional encoding ...
2
votes
1answer
198 views

Unable to read ANSI file in apex code?

I need to upload a file with ANSI character encoding from a VisualForce page and should be able to read the file and perform actions from Apex class(controller). Now when I upload an ANSI file, a ...
2
votes
1answer
164 views

URL Encoding String with just Plus Signs

I am just learning about EncodingUtil.urlEncode(targetString,'UTF-8'); and encoding schemes. targetString will print out something that looks like this: String targetString = '...
0
votes
0answers
51 views

How to query a field which contains base64 string as is?

I have field on my custom metadata type record which contains a base64 encoded string. When I query it in Apex the string shows as HTML which was the original. How do I get the base64 string in my ...
0
votes
0answers
299 views

Get base64 string from ContentVersion via REST API

I'm trying to get an image save on Salesforce to show on my React application. I'm using the Salesforce API to get it (/services/data/v41.0/sobjects/ContentVersion/0681I0000019xbIQAQ/VersionData) and ...
0
votes
1answer
870 views

Trailhead challenge error secure lightning javascript code

In this challenge I have to use securefilter library and securely encode the date. I have made the changes as follows- <aura:component controller="LTNG_Creatures_Controller" access="global" ...
1
vote
1answer
219 views

Japanese character displays in Visualforce template but in PDF it shows question marks (???) [closed]

In my company we use Servicemax managed package. In one of the transactions, we have a visualforce template that generates a report. When I check it in our visualforce page I see it like this: But ...
1
vote
1answer
312 views

URL Rewriting in Lightning to support Classic functionality

I have an Apex logic that checks: On click of New button of Opportunity, if the logged-in user has permission to create records, reconstruct the PageReference with the default url like below: https://...
5
votes
1answer
2k views

Why are there 3 functions to encode in Visualforce?

I'm following the Injection Vulnerability Prevention module on Salesforce Trailhead, and I'm reading about the Visualforce functions to encode data to prevent XSS attacks. To quote from the module: ...
3
votes
2answers
462 views

Emoji Support in Visualforce

I've set up the following test page: Visualforce Page: <apex:page controller="Emojis" action="{!Emojis}" > <apex:form > <apex:actionPoller interval="5" reRender="emoji"/> ...
0
votes
1answer
890 views

File encoding Data Extract - Marketing Cloud

we exported few files (.CSV, .ZIP) from Marketing Cloud into SFTP folder using Data Extract and File Transfer as activities. We noticed that files' encoding is 'UCS-2 LE BOM' and not 'UTF-8' as ...
1
vote
1answer
180 views

Apex Amazon ItemLookup Request

I have tried for quite some time to get past the irritating 'SignatureDoesNotMatch' error that Amazon keeps sending back to me from my webservice request to their API. First, in case you are very ...
0
votes
2answers
676 views

Apex rest response: cyrillic characters encoding issue

[SOLVED] Fixed in Spring Framework: restTemplate.getMessageConverters() .add(0, new StringHttpMessageConverter(Charset.forName("UTF-8"))); I have cyrillic characters in response. I prefer using void ...
5
votes
2answers
1k views

How to generate GUID in salesforce?

How do I generate GUID in apex class in salesforce in the following format mentioned(16 bytes or 128 bits)? BA8D6569-9208-4DBB-9357-A4500838101E Any suggestions will be appreciated. Thanks in ...
3
votes
1answer
627 views

Encoding used when sending emails through singleemail method

When sending out a single email salesforce encodes the HTML body As per doc : https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound_single.htm#...
2
votes
0answers
55 views

Encoding a Custom Link for use outside of Salesforce?

I would like to create a custom link to our website using Salesforce data to autofill a form, and then be able to copy and paste the link into an email or other document. It works fine to do that with ...
0
votes
1answer
143 views

Where are the “==” characters in my base64-encoded value coming from?

I created a utility method TwitterUtil.encodeConsumerKeyAndSecret() to return the encoded credentials needed for Twitter's application-only authentication flow. However, when testing my method using ...
0
votes
1answer
240 views

First error: invalid character encoding - Apex Job

I have written an apex batch that was working before sendbox refreshing. When I try to run the batch I get this message in the Status Detail: First error: invalid character encoding Instead in the ...
5
votes
1answer
1k views

Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded

I have a Visual Force component inside a Visual Force Email Template with the intention of producing an HTML email in which the component is reponsible for rendering some of the HTML. What seems to be ...
1
vote
1answer
647 views

Issue with conditional statement in apex:repeat inside javascript

I am trying to create a map in javascript using apex:repeat tag but it's not working as per expectations. Below is the VF page and controller I have created : <apex:page controller="...
2
votes
1answer
287 views

Exact Target Charset

I send Data via SOAP to Exact Target extension. Everything work fine, but if I send some characters from another languages I have problems. I have tried to set line <?xml version="1.0" encoding="...