# FinalBuilder 5 Unicode replace problems

**URL:** https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525
**Category:** Discussion
**Created:** [July 16, 2007, 9:55am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525 "2007-07-16T09:55:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 16, 2007, 9:55am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/1 "2007-07-16T09:55:14Z")

</div>

Hi all :  
  
&nbsp;&nbsp;&nbsp; I have a question&nbsp;need your help .  
&nbsp;&nbsp;&nbsp; I use Final Builder 5 to replace Unicode text .  
&nbsp;&nbsp;&nbsp; But The wording is not&nbsp;replaced &nbsp;by&nbsp;the variable value and it is replaced by the variable name.

&nbsp;&nbsp;&nbsp;&nbsp; Like the belows:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The variable name : %AAA%  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The variable %AAA% value :&nbsp; **BBB**  
  
&nbsp;&nbsp;&nbsp;&nbsp; Original sentences : I am a &nbsp;#NeedReplacedWording#  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;After replaced , it should be =\> I am a&nbsp; BBB .  
&nbsp;&nbsp;&nbsp;&nbsp; But Now , it changed to be =\> I am a good %AAA%

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It doesn't replace by variable value , but replace by variable name... ( it could work in FinalBuilder3 but it &nbsp;fails in FinalBuilder5)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Does anyone encounter this problem....   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please Help...

Jerry

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 17, 2007, 1:52am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/2 "2007-07-17T01:52:04Z")

</div>

Hi Jerry,

I'm not quite sure what you mean by this, but do you mean that you have the following setup:

| [b]Variable Name[/b] | [b]Variable Value[/b] |
| NeedReplacedWording | %AAA% |
| AAA | BBB |

If this is the case, you'll need to check the "IsMacro" option on variable NeedReplacedWording. This tells the variable to expand any variable references in its value, each time the value is accessed - so you'll always get the current value of the variable.

&nbsp;

My apologies if I've misinterpreted the problem. If you could explain some more, that would be great. Alternatively, could you email an example project and text file, to support at finalbuilder dot com?

Regards,

Angus

PS The problem may possibly be to do with the type of Unicode file. Do you know what Unicode format it is in?

PPS Just so you know, I deleted the duplicate post on the Automise forum.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 17, 2007, 3:54am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/3 "2007-07-17T03:54:29Z")

</div>

Hi Angus :

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks your help first .

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I provide one sample.   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I want to replace #variable# in aa.htm by %AAA% value&nbsp; "BBB"

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so the original sentence is =\> you could replace #variable#  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; after replaced ,it should be =\> you could replace BBB  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; but now it becomes =\> you could replace %AAA%

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If still don't understand , please refer to the sample.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks your help again .

Jerry

[Example.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/01453aeb6253b33d8ad078338e012d4135b28ce9.zip) (2.957 KB)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 17, 2007, 7:11am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/4 "2007-07-17T07:11:33Z")

</div>

Hi Jerry,   
  
 Unfortunately, FinalBuilder doesn’t yet fully support Unicode, and can’t read the UTF-16 file you’ve specified.   
  
 This is a limitation we are painfully aware of. We’re hoping we can offer full Unicode support in a future release.   
  
 Is it possible for you to convert the file to UTF-8 or ANSI encoding?   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 19, 2007, 9:01am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/5 "2007-07-19T09:01:22Z")

</div>

Hi angus :

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;we found a solution to solve the problem.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;we&nbsp;added script in Script Editor when replacing variable&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and cancel to assign variable name in ReplaceText TextBox of the&nbsp;Text Replace(Unicode)&nbsp;in GUI.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;script&nbsp;likes the followings :

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Action.PropertyStore.PropertyAsString("ReplaceText") = TEMP

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =\> TEMP means variable name like&nbsp; "AAA"

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then it could be replaced correctly ..

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FYR ....

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thanks your help

Jerry

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [July 20, 2007, 1:27am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-5-unicode-replace-problems/525/6 "2007-07-20T01:27:36Z")

</div>

Hi Jerry,   
  
 Glad to hear you got it working. Which text replace action did you end up using?   
  
 - Angus
