<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Foreign characters when uploading a list in HubSpot. in Lists, Lead Scoring &amp; Workflows</title>
    <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/595#M8</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new HubSpot user and I am having issues in uploading my list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list that consists of Korean characters and when i uploaded it in HubSpot, the the property "First Name" (Which was in Korean characters), the value only showed "??????".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way for HubSpot to automatically translate the foreign characters into English? If yes, how do we do that? If no, what would you suggest for me everytime i will import a list with a foreign character?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping for your inputs!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 16:10:40 GMT</pubDate>
    <dc:creator>rsantiago</dc:creator>
    <dc:date>2016-11-09T16:10:40Z</dc:date>
    <item>
      <title>Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/595#M8</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new HubSpot user and I am having issues in uploading my list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list that consists of Korean characters and when i uploaded it in HubSpot, the the property "First Name" (Which was in Korean characters), the value only showed "??????".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way for HubSpot to automatically translate the foreign characters into English? If yes, how do we do that? If no, what would you suggest for me everytime i will import a list with a foreign character?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping for your inputs!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:10:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/595#M8</guid>
      <dc:creator>rsantiago</dc:creator>
      <dc:date>2016-11-09T16:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/660#M9</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470"&gt;@rsantiago﻿&lt;/a&gt;&amp;nbsp;could you confirm if you are using a csv. file from Excel or Google Sheets in this case?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:49:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/660#M9</guid>
      <dc:creator>roisinkirby</dc:creator>
      <dc:date>2016-11-11T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/661#M10</link>
      <description>&lt;P&gt;Hi Roisinkirby,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a CSV (Comma Delimited) excel sheet.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:51:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/661#M10</guid>
      <dc:creator>rsantiago</dc:creator>
      <dc:date>2016-11-11T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/701#M11</link>
      <description>&lt;P&gt;Thanks for following up&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470"&gt;@rsantiago﻿&lt;/a&gt;. Excel can be a little tricky when it comes to downloading CSV. files with special charactes. This help article guides you step by step on how to format and save your excel document to preserve these characters: &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/contacts/how-can-i-include-special-characters-in-my-import-file" target="_self"&gt;How to include special&amp;nbsp;characters in your import file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second to this, I'd reccommend using Google Sheets for documents such as these - they tend to be more successful for imports of this kind!&lt;/P&gt;
&lt;H1 id="how-can-i-include-special-characters-in-my-import-file"&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Mon, 14 Nov 2016 10:26:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/701#M11</guid>
      <dc:creator>roisinkirby</dc:creator>
      <dc:date>2016-11-14T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/316589#M3571</link>
      <description>&lt;P&gt;Hi, that link only takes us to a page where it states that I need utf-8 files for IMPORT. How can I get Unicode characters at EXPORT from Hubspot?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:30:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/316589#M3571</guid>
      <dc:creator>OlaCarlander</dc:creator>
      <dc:date>2020-02-04T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign characters when uploading a list in HubSpot.</title>
      <link>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/1071127#M10875</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote some custom code to overcome this issue (it automatically amends first name &amp;amp; can easily be changed for last name)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const axios = require("axios");&lt;/P&gt;&lt;P&gt;exports.main = async (event) =&amp;gt; {&lt;BR /&gt;const secretKey = "enter your key here";&lt;/P&gt;&lt;P&gt;console.log("Secret Key Retrieved:", secretKey);&lt;BR /&gt;console.log("Input Fields:", JSON.stringify(event.inputFields));&lt;/P&gt;&lt;P&gt;const contactFirstName = event.inputFields.firstname;&lt;BR /&gt;if (!contactFirstName) {&lt;BR /&gt;console.error("No value provided for contact first name.");&lt;BR /&gt;throw new Error("Contact first name is missing. Cannot update the contact.");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;console.log("Raw Input:", contactFirstName);&lt;/P&gt;&lt;P&gt;const decodeHtmlEntitiesAndUnicode = (str) =&amp;gt; {&lt;BR /&gt;if (!str) return str;&lt;/P&gt;&lt;P&gt;console.log("Before Decoding:", str);&lt;/P&gt;&lt;P&gt;// HTML Entities Map&lt;BR /&gt;const htmlEntities = {&lt;BR /&gt;"&amp;amp;Agrave;": "À",&lt;BR /&gt;"&amp;amp;Aacute;": "Á",&lt;BR /&gt;"&amp;amp;Acirc;": "Â",&lt;BR /&gt;"&amp;amp;Atilde;": "Ã",&lt;BR /&gt;"&amp;amp;Auml;": "Ä",&lt;BR /&gt;"&amp;amp;Aring;": "Å",&lt;BR /&gt;"&amp;amp;AElig;": "Æ",&lt;BR /&gt;"&amp;amp;Ccedil;": "Ç",&lt;BR /&gt;"&amp;amp;Egrave;": "È",&lt;BR /&gt;"&amp;amp;Eacute;": "É",&lt;BR /&gt;"&amp;amp;Ecirc;": "Ê",&lt;BR /&gt;"&amp;amp;Euml;": "Ë",&lt;BR /&gt;"&amp;amp;Igrave;": "Ì",&lt;BR /&gt;"&amp;amp;Iacute;": "Í",&lt;BR /&gt;"&amp;amp;Icirc;": "Î",&lt;BR /&gt;"&amp;amp;Iuml;": "Ï",&lt;BR /&gt;"&amp;amp;ETH;": "Ð",&lt;BR /&gt;"&amp;amp;Ntilde;": "Ñ",&lt;BR /&gt;"&amp;amp;Ograve;": "Ò",&lt;BR /&gt;"&amp;amp;Oacute;": "Ó",&lt;BR /&gt;"&amp;amp;Ocirc;": "Ô",&lt;BR /&gt;"&amp;amp;Otilde;": "Õ",&lt;BR /&gt;"&amp;amp;Ouml;": "Ö",&lt;BR /&gt;"&amp;amp;Oslash;": "Ø",&lt;BR /&gt;"&amp;amp;Ugrave;": "Ù",&lt;BR /&gt;"&amp;amp;Uacute;": "Ú",&lt;BR /&gt;"&amp;amp;Ucirc;": "Û",&lt;BR /&gt;"&amp;amp;Uuml;": "Ü",&lt;BR /&gt;"&amp;amp;Yacute;": "Ý",&lt;BR /&gt;"&amp;amp;THORN;": "Þ",&lt;BR /&gt;"&amp;amp;szlig;": "ß",&lt;BR /&gt;"&amp;amp;agrave;": "à",&lt;BR /&gt;"&amp;amp;aacute;": "á",&lt;BR /&gt;"&amp;amp;acirc;": "â",&lt;BR /&gt;"&amp;amp;atilde;": "ã",&lt;BR /&gt;"&amp;amp;auml;": "ä",&lt;BR /&gt;"&amp;amp;aring;": "å",&lt;BR /&gt;"&amp;amp;aelig;": "æ",&lt;BR /&gt;"&amp;amp;ccedil;": "ç",&lt;BR /&gt;"&amp;amp;egrave;": "è",&lt;BR /&gt;"&amp;amp;eacute;": "é",&lt;BR /&gt;"&amp;amp;ecirc;": "ê",&lt;BR /&gt;"&amp;amp;euml;": "ë",&lt;BR /&gt;"&amp;amp;igrave;": "ì",&lt;BR /&gt;"&amp;amp;iacute;": "í",&lt;BR /&gt;"&amp;amp;icirc;": "î",&lt;BR /&gt;"&amp;amp;iuml;": "ï",&lt;BR /&gt;"&amp;amp;eth;": "ð",&lt;BR /&gt;"&amp;amp;ntilde;": "ñ",&lt;BR /&gt;"&amp;amp;ograve;": "ò",&lt;BR /&gt;"&amp;amp;oacute;": "ó",&lt;BR /&gt;"&amp;amp;ocirc;": "ô",&lt;BR /&gt;"&amp;amp;otilde;": "õ",&lt;BR /&gt;"&amp;amp;ouml;": "ö",&lt;BR /&gt;"&amp;amp;oslash;": "ø",&lt;BR /&gt;"&amp;amp;ugrave;": "ù",&lt;BR /&gt;"&amp;amp;uacute;": "ú",&lt;BR /&gt;"&amp;amp;ucirc;": "û",&lt;BR /&gt;"&amp;amp;uuml;": "ü",&lt;BR /&gt;"&amp;amp;yacute;": "ý",&lt;BR /&gt;"&amp;amp;thorn;": "þ",&lt;BR /&gt;"&amp;amp;yuml;": "ÿ",&lt;BR /&gt;"&amp;amp;quot;": '"',&lt;BR /&gt;"&amp;amp;apos;": "'",&lt;BR /&gt;"&amp;amp;amp;": "&amp;amp;",&lt;BR /&gt;"&amp;amp;lt;": "&amp;lt;",&lt;BR /&gt;"&amp;amp;gt;": "&amp;gt;",&lt;BR /&gt;"&amp;amp;nbsp;": " ",&lt;BR /&gt;"&amp;amp;copy;": "©",&lt;BR /&gt;"&amp;amp;reg;": "®",&lt;BR /&gt;"&amp;amp;yen;": "¥",&lt;BR /&gt;"&amp;amp;euro;": "€",&lt;BR /&gt;"&amp;amp;pound;": "£",&lt;BR /&gt;"&amp;amp;cent;": "¢",&lt;BR /&gt;"&amp;amp;deg;": "°",&lt;BR /&gt;"&amp;amp;plusmn;": "±",&lt;BR /&gt;"&amp;amp;divide;": "÷",&lt;BR /&gt;"&amp;amp;times;": "×",&lt;BR /&gt;"&amp;amp;micro;": "µ",&lt;BR /&gt;"&amp;amp;middot;": "·",&lt;BR /&gt;"&amp;amp;para;": "¶",&lt;BR /&gt;"&amp;amp;sect;": "§",&lt;BR /&gt;"&amp;amp;laquo;": "«",&lt;BR /&gt;"&amp;amp;raquo;": "»",&lt;BR /&gt;"&amp;amp;frac14;": "¼",&lt;BR /&gt;"&amp;amp;frac12;": "½",&lt;BR /&gt;"&amp;amp;frac34;": "¾",&lt;BR /&gt;"&amp;amp;shy;": "­",&lt;BR /&gt;"&amp;amp;iquest;": "¿",&lt;BR /&gt;"&amp;amp;not;": "¬",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Replace HTML Entities&lt;BR /&gt;let decodedStr = str;&lt;BR /&gt;for (const [entity, char] of Object.entries(htmlEntities)) {&lt;BR /&gt;const entityWithoutSemicolon = entity.replace(/;$/, "");&lt;BR /&gt;[entity, entityWithoutSemicolon].forEach((variant) =&amp;gt; {&lt;BR /&gt;if (decodedStr.includes(variant)) {&lt;BR /&gt;console.log(`Entity Found: Replacing ${variant} with ${char}`);&lt;BR /&gt;decodedStr = decodedStr.replace(new RegExp(variant, "g"), char);&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Replace Unicode References (&amp;amp;#351; and &amp;amp;#x015F;)&lt;BR /&gt;decodedStr = decodedStr.replace(/&amp;amp;#(\d+);/g, (_, code) =&amp;gt; {&lt;BR /&gt;console.log(`Unicode Found: Replacing &amp;amp;#${code}; with ${String.fromCharCode(code)}`);&lt;BR /&gt;return String.fromCharCode(code);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;decodedStr = decodedStr.replace(/&amp;amp;#x([0-9a-fA-F]+);/g, (_, hexCode) =&amp;gt; {&lt;BR /&gt;console.log(`Unicode Found: Replacing &amp;amp;#x${hexCode}; with ${String.fromCharCode(parseInt(hexCode, 16))}`);&lt;BR /&gt;return String.fromCharCode(parseInt(hexCode, 16));&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;console.log("After Decoding:", decodedStr);&lt;BR /&gt;return decodedStr;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const decodedFirstName = decodeHtmlEntitiesAndUnicode(contactFirstName);&lt;BR /&gt;console.log("Decoded First Name:", decodedFirstName);&lt;/P&gt;&lt;P&gt;const contactId = event.inputFields.contactId;&lt;BR /&gt;if (!contactId) {&lt;BR /&gt;console.error("Contact ID is missing.");&lt;BR /&gt;throw new Error("Contact ID is required to update the contact.");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const hubspotApiUrl = `&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/${contactId" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/contacts/${contactId&lt;/A&gt;}`;&lt;BR /&gt;const hubspotHeaders = {&lt;BR /&gt;Authorization: `Bearer ${secretKey}`,&lt;BR /&gt;"Content-Type": "application/json",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;const response = await axios.patch(&lt;BR /&gt;hubspotApiUrl,&lt;BR /&gt;{&lt;BR /&gt;properties: {&lt;BR /&gt;firstname: decodedFirstName,&lt;BR /&gt;},&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;headers: hubspotHeaders,&lt;BR /&gt;}&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;console.log("Contact updated successfully:", response.data);&lt;BR /&gt;} catch (error) {&lt;BR /&gt;console.error(&lt;BR /&gt;"Error updating contact:",&lt;BR /&gt;error.response ? error.response.data : error.message&lt;BR /&gt;);&lt;BR /&gt;throw new Error("Failed to update contact");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;outputFields: {&lt;BR /&gt;decodedFirstName,&lt;BR /&gt;},&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:36:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Foreign-characters-when-uploading-a-list-in-HubSpot/m-p/1071127#M10875</guid>
      <dc:creator>GrowthArchitect</dc:creator>
      <dc:date>2024-11-18T16:36:51Z</dc:date>
    </item>
  </channel>
</rss>

