FinalBuilder 5 Unicode replace problems

Hi all :

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

     Like the belows:

     The variable name : %AAA%
     The variable %AAA% value : BBB

     Original sentences : I am a  #NeedReplacedWording#
     After replaced , it should be => I am a  BBB .
     But Now , it changed to be => I am a good %AAA%

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

Jerry

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.

 

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.

Hi Angus :

          Thanks your help first .

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

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

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

        Thanks your help again .

Jerry

Example.zip (2.957 KB)

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

Hi angus :

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

       The script likes the followings :

       Action.PropertyStore.PropertyAsString("ReplaceText") = TEMP

       => TEMP means variable name like  "AAA"

       Then it could be replaced correctly ..

       FYR ....

       thanks your help

Jerry

Hi Jerry,

Glad to hear you got it working. Which text replace action did you end up using?

- Angus