on 01-27-2015 7:27 AM
Hi
I am trying to create an Utility to read and copy the PBT files from one place to another place.
For that, I would like to read the list of PBT files from Powerbuilder workspace (*.pbw)
I am using the PB version 9.0 for a Japanese customer, where the few folders are in Japanese text and hence when reading PBW files in notepad, those characters seems converted into hexadecimal. The same opens with proper folder name inside powerbuilder screen.
I am not able to extract the filepath using FileRead concepts. Can anyone help me in this???
Thanks & Regards
Ganesh
Hi.
Maybe this problem is related to version of powerbuilder you are using? PB 9 isn't unicode. I wonder what would happen if you tried to use a newer version... And I guess the problem should appear only for filenames using non ansi charachers mentioned in your targets...
Andreas,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am working for Customer. We have already recommended to upgrade to the higher version for so many reasons long back.
Whatever you said is right. Only the Non-Ansi text get encoded. I wonder how this logic is kept in secret. Atleast Sybase should provide some predefined functions to extract such lists.
All my workspace files are ANSI encoded. Are the PBWs in Japanese environments Unicode?
May be Powerbuilder encodes Unicode characters so you have to encode the yourself after reading?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes.. Even I tried in different assumptions and nothing helped me.
Finally thought to put this in forums...
Problem is same PBT can be applied in different folders and hence need to avoid the duplicate when select an workspace from my utility. Otherwise, we can indirectly select the PBT files from folders.
Its ok. Thanks a lot Rene... for trying to support me..
I shall keep this thread in open.. Let us see.. whether anyone could reply...
What is your regional settings and language setup actually. Mine is all in Japnese.
Also Japnese Language pack is installed and hence it supports this feature in my local desktop also. But only thing is, I could not understand how the powerbuilder encoding as such and decoding while open in the application. !@@$#@$@!!!!
in the encoded text, first three charactesr \\\, first two needs to be replaced with "\", rest slashes are used as the delimeter for the hexadecimal chars.
I meant each Hexadecimal character is splitted between every backslash.
Folder name in this example is displayed as "Kanji" format of japanese text.
I suspect it might be converting them into equivalent "Hiragana" or "Katakana" text format and later making them into Hexa decimal.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.