x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android packaging: fatal error: UTF-16

i got one or 2 files .h , looks like one of them is UTF-16, but why there's an error with that? to fix it i've used VSCode - there's an option to choose encoding. but in fact those files was made by UE and edited with VS2015

Product Version: UE 4.10
Tags:
more ▼

asked Dec 01 '15 at 01:39 PM in Packaging & Deployment

avatar image

OeAi
6 4 9 12

avatar image Samantha Sutton ♦♦ STAFF Dec 04 '15 at 09:43 PM

Hey OeAi,

Please review this AnswerHub post to see whether or not their resolution is the same as yours. Please provide the same screenshots and logs if the issue isn't resolved from this post.

Thanks!

avatar image OeAi Dec 05 '15 at 06:37 AM

i've changed encoding myself as i described, but the error is in UE, because UE generates UTF-16 files and cannot compile it, i don't understand why not compiling UTF-16?

avatar image Samantha Sutton ♦♦ STAFF Dec 08 '15 at 05:31 PM

The auto-generated files are written in whatever encoding the original filename had. Is it possible that you had UTF-16 in the filename of the actual .h file? Without seeing the actual original .h files, we wouldn't be able to give you more information.

Thank you!

avatar image OeAi Dec 08 '15 at 06:04 PM

alphabet.h

 // Эта программа распространяется в целях образования, с использованием Unreal Engine 4.
 
 #pragma once
 
 #include "Engine.h"


the first comment was taken from project settings i guess, if it was in UTF-16, maybe it was copied as is in this file too

avatar image Samantha Sutton ♦♦ STAFF Dec 10 '15 at 08:54 PM

Please upload the error output logs as a .txt file as your next reply. Please also include the Target rules too.

Target rules are found in a similar filepath:

  • UE4Editor - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Editor.Target.cs

  • UE4Game - E:\Program Files\Epic Games\4.9\Engine\Source\UE4Game.Target.cs

  • YourProject - C:\Users\NAME\Documents\Unreal Projects\PROJECT\Source\PROJECT.Target.cs

  • C:\Users\NAME\Documents\Unreal Projects\PROJECT\Source\PROJECTEditor.Target.cs

Upload these, along with the error logs.

Thanks!

avatar image OeAi Dec 14 '15 at 05:30 PM

well, i've already solve this problem by converting file from utf-16 to utf-8 it's not the solution, because if UE4 don't support UTF-16 encoding for .h files this can be found somewhere in code. i can propose to define all produced files encoding with some menu just add checkbox UTF-16 if it's not checked, then generate everything in utf-8 i don't have logs already i think

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

more ▼

answered Dec 14 '15 at 02:50 PM

avatar image Samantha Sutton ♦♦ STAFF Dec 14 '15 at 07:17 PM

The auto-generated files are written in whatever encoding the original filename had. If you have UTF-16 in the filename, it would have caused the encoding to come out differently. The engine can encode in UTF-16, it just doesn't necessary use that encoding which is why the errors are thrown up.

Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question