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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

.ini file with special characters

Hello,

Is it possible to write and read special characters from a .ini file? I can iterate through the elements in the file and obtaining the It.Value() for each key, but that's a FString and I need to recover values with special characters. Any idea please?

Thank you in advance, Javi

 for (FConfigSection::TIterator It(*Configs); It; ++It)
 {
     const FString& KeyString = It.Key().GetPlainNameString();
     const FString& ValueString = It.Value();
 }
Product Version: Not Selected
Tags:
more ▼

asked Jul 30 '14 at 04:07 PM in C++ Programming

avatar image

JavierRamello
71 6 10 17

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

2 answers: sort voted first

Solved. The config file must be UTF8. The default type is UTF8 w/o BOM

more ▼

answered Jul 31 '14 at 10:58 AM

avatar image

JavierRamello
71 6 10 17

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

FString's can contain any special characters within the Unicode Basic Multilingual Plane. That includes the large majority of special characters used by most languages.

So depending on what characters you'd like to store that should be fine.

more ▼

answered Jul 30 '14 at 05:05 PM

avatar image

Sarge STAFF
637 14 4 36

avatar image JavierRamello Jul 31 '14 at 07:59 AM

I am debugging the map and this is what I find in the interator:

alt text

As you can see there are some characters missing (ÁÉÍÓÚ¿) that are included in the Latin-1 Supplement block. This block is within the Unicode Basic Multilingual Plane so they should be displayed.

map.jpg (106.2 kB)
(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