问题
I have emojis in this format - \U0001f924
why BigQuery(Google Data studio) does not display them, even if I saw examples that this format working for other people?
SAMPLE: - Second Emoji in this format \u2614
Ref: Emoji crashed when uploading to Big Query
Based on this article it should work: Google \Uhhhhhhhh Format
UPDATE 1.0:
If I use ""
then emojis in this format \U2714
displays emoji, this one \U0001f680
still the same as text U0001f680
If I use ''
then emojis in this format \U2714
as well as \U0001f680
display only value U2714 and U0001f680
回答1:
The emoji on the question works for me with
SELECT "\U0001f680"
:
I stored the results in a table so you can find it:
- https://bigquery.cloud.google.com/table/fh-bigquery:public_dump.one_emoji?tab=preview
If you ask BigQuery to export this table to a GCS file, and bring this file into your computer, it will continue to work:
You can download this json file and load it back into BigQuery:
- https://drive.google.com/file/d/1hXASPN0J4bP0PVk20x7x6HfkAFDAD4vq/view?usp=sharing
Let's load it into BigQuery:
Everything works fine:
So the problem is in the files you are loading to BigQuery - which are not encoding emoji's appropriately.
What I don't know is how you are generating these files, nor how to fix that process. But here I have proven that for files that correctly encode emojis - you can load them into BigQuery and emojis will be preserved.
🙃
来源:https://stackoverflow.com/questions/52199674/big-query-do-not-accept-emoji