GetProfileString doesn't support unicode format.??

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Untitled</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<cfset currentPath = getCurrentTemplatePath()>
<cfset currentDirectory = getDirectoryFromPath(currentPath)>
<cfscript>
function udf_Translate(Name, Filename, Section) {
    var outText="";
    //    If user selected default language (English), bypass the translation
    if (cookie.cookie_language eq "EN")
        return Name;
    if (Filename eq "")
        Filename = "Common";
    if (Section eq "")
        Section = "Common";
    INI_Path = #currentDirectory# & "Language.properties";
    outText = GetProfileString(INI_Path, Section, Name);
  return IIf(Len(Trim(outText)) gt 0, DE(outText), DE(Name));
</cfscript>
<cfoutput>#udf_translate("Ward", "Inpatient", "")#</cfoutput>
</body>
</html>
Language.properties
[COMMON]
Ward=Phường
It output only "Ward" instead of Phường when I save this file as UFT-8. But, when I save this file as ANSI encoding, it output as Phu?ng. It's wrong. Why GetProfileString doesn't UTF-8 format? Any solutions will be appreciated.

you didn't need to (that's why it's called "re-inventing the wheel"):
http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=cat&catid=6D990B76-50FC-543B-1FA4 AB2B1CE26EFC
once these things get bigger & more complex, how will you manage them? notepad?
you're better off sticking w/a "main stream"/proven methodology that are based
on good practices than knocking off stuff like this.

Similar Messages

  • Wave Studio says "device doesn't support this format"

    ?Wave Studio says "device doesn't support this format"'I have a X-Fi Extreme Music card I'm using in Windows 7 (x64). I haven't had any issues with the card or the software until I installed a codec pack: Shark Windows 7 Codec pack. It worked OK, but when I try to play a WAV file in Creative Wave Studio (7), I get an error message: Sorry, your audio device doesn't support this format". Weird, since Wave Studio's "nati've" format is WAVs!!
    So I uninstalled Shark, uninstalled Wave Studio, and uninstalled (from Device Manager) my sound card. Rebooted, then reinstalled the driver for the sound card, rebooted and reinstalled Wave Studio. I still get the error message and can't play WAVs in Wave Studio. The version is 7.2, and the driver is 6.0..375 (5/5/200). Anyone have any ideas?
    Thanks,
    Laner

    CThe point is moot now, I've gotten a new computer and installed the card in that machine. Everything works great now. I would imagine there was a registry issue that didn't get cleaned, or something similar. Still, it would have been nice to resolve the problem, as someone else might experience the same issue and could find a way to help get it taken care of.
    Cheers,
    Laner

  • Why my iPad doesn't support adobe format so can't download adobe documents

    my iPad doesn't support adobe format so can't download adobe documents

    What adobe format?
    PDFs are natively supported.
    Adobe has several apps in the App Store.

  • View pivotTableView!1 is either missing or doesn't support this format

    I have request with pivot table which is once displayed as bars and once (duplicate view) displayed as pie.
    I used view selector to let the user select which view he desire to watch.
    Suddenly, after it already works fine, when I changed the view selecotr from the (default) bars view to the pie view, I get the following error message:
    'View pivotTableView!1 is either missing or doesn't support this format'
    When running from Answers design view of the same request, it runs fine.
    There is no issue regarding the data, since the bars view is displayed ok.
    Does anyone know the meaning of this phenomena?

    Hey! Did what I say work? If so, then it would be nice to indicate so and award points (click "correct" on top right side of my previous post). If not, what did you end up doing to fix your problem? Again, it would be nice to let us know.
    Okay, you marked the thread answered thereby closing the thread, but you didn't answer my question. What worked? (And as a courtesy, mark my post "correct" or "helpful" as well as the thread itself, if what I said gave you the solution.)
    Edited by: David_T on Sep 3, 2010 12:10 PM

  • I have some unfinished projects in an old iMovie format. How can I finish them using the new iMovie? When I open them it says it doesn't support powerPC format

    I have some unfinished project in an old iMovie format. If I try to import them to the new iMovie to finish them it says I can't because it does not support powerPC formats. How can I save them???

    Right click on the icon and choose "Show Package Contents".
    Drill down through the folders to find your original source clips (probably .dv files). Drag them to a new Desktop folder to import them into iMovie.

  • Video does not play: "Either windows doesn't support the item's file format......"

    Error message
    "Either windows doesn't support the item's file format or the content doesn't match the extension"
    I have both a Yoga and a Thinkpad 2. The Yoga is running Win 8 and the Thinkpad 2 has 8.1 Preview.
    I have copied multiple video files which are in either .avi or .mp4 containers.
    Some will play and some will not. I have installed all sorts of codec packages and players and the problem is the same. I though it might be a container problem so I tried to convert the file and the converter I used did not work.
    Searched the Internet and nothing really useful was found.
    Then I discovered a common thread. In the files that played, the codec information displayed when checking in properties and the ones that did not play, did not have the information.
    I have a video file on a USB flash drive and checked the properties and the information was there and I could play it from the flash drive. I copied it to my desktop and the file would not play. In checking, the codec information was not present.
    There seems to be an error in copying files where the requisite codec information is not being transferred.
    I have tried this multiple times and multiple permutations of transferring. Sometimes it will play from the desktop and will not play after transfer to the microSD card.
    Each time when it plays, the information is there and each time it does not play, the information is not there.
    Sal

    The problem is the period at the end. This system assumes it
    to be part of the url. I should have put a space and the end of the
    url before using a period to close the sentence. try this one:
    http://www.aaew.org/intro.swf
    http://www.scofieldministries.org/webtest/mv1.swf
    http://www.scofieldministries.org/webtest
    Please note that just the home page and supporting files have
    been loaded to the test server.
    Thanks,

  • LoadSound doesn't support all device formats?

    According to the flash lite 2.x documentation. loadSound can
    load and play device sounds. This works fine with mp3 and smaf.
    However when trying to loadSound an amr audio (both NB and WB) I
    get a bad sound data error message (probelm with content: 7)
    Has anyone encountered this problem yet?

    Yes, this is an issue and there are other device sound
    formats that do not load in addition to AMR. I believe that Adobe
    does not have a way to poll the device about supported audio
    formats, so they have to rely on their own information which is
    incomplete. Hopefully this will be fixed in some future release.
    By the way, what phone are you testing that supports SMAF and
    FL2.0?

  • HT4356 Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example. What can I do?

    Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example.
    <E-mail Edited by Host>

    It appears what happened is the installer though it was looking at a empty drive and just went ahead and installed.
    I of course am assuming here you didn't use Disk Utility to format the drive first before installing, that would wipe out your files and programs for sure.
    So what to do, what to do.
    Well there is hope for you as long as the drive wasn't Filevaulted.
    I'll explain. When a hard drive writes data for the first time to a drive, it starts at the very top and works it's way down.
    When OS X was installed the first time, it was at the top of the drive, unless you upgraded then the upgraded OS X could have been written elsewhere.
    Now when you just reinstalled OS X, the new OS went on the top of the drive, overwriting any data that was there previously, so what was there you have lost forever which is about 8GB or so. If it was the previous OS there, then your more in luck because only the old OS X was overwritten.
    The remaining space on the drive still can have a copy of your files, provided it's not overwritten yet.
    It's because when a hard drive deletes data or reformats, it doesn't remove the data off the drive or overwrites it immediately, it's just made so it's SPACE is available for new files to be written there.
    So technically one can recover the deleted data off a non-encrypted/scrubbed hard drive with special software.
    The way it does this is it reads the 1's and 0's of the files themselves, and through a lot of figuring out, can tell what that file is and what it belongs too.
    So what you will have to do is this:
    Create a data recovery/undelete external boot drive
    or if you don't have the skills, then take it to a local PC/Mac tech and they can do a direct image of the drive and then you can run Data Rescue on it to rebuild your files.

  • I have a model 1,1 Mac Book in the black case.  How can I transfer about 30 GB of stuff to a MacBook Pro running Yosemite?  Can't do a Thunderbolt transfer.  The Seagate backup drive I bought doesn't support 10.5.8.  Thank you.

    How do I transfer 30 GB of stuff, mostly text documents, bookmarks and a few hundred photos from a MacBook model 1,1 in the black case, purchased in (2007?) running Leopard 10.5.8 with a 667 bus, 2 GB, 256 GB to a MBP 13" Retina running Yosemite 10.10.1?  Using Migrate is out.  Discovered after I bought it that the Seagate Plus Backup for Mac does not work with 10.5.8.  OnetoOne recommends backing up my data before I do that, which seems like a good idea.  Have a 801.11 n Time Capsule that also isn't working so that is not presently an option.  Thank you.

    The Seagate backup drive I bought doesn't support 10.5.8
    The only reason I can see for that is it's formatted NTFS, which would likely be Read Only in 10.5.x, if you can reformat it MacOS extended, which would erase everything on it now, then that should work for your purposes.

  • Canon 650D doesn't support FCP 7 log and transfer...

    Canon 650D doesn't support FCP 7 log and transfer...
    anyone know how to solve this problem?  thanks alot

    Download and install the latest version of the E-1 plugin from Canon’s website here:
    http://www.usa.canon.com/cusa/support/consumer/eos_slr_camera_systems/eos_digita l_slr_cameras/eos_rebel_t4i#DriversAndSoftware
    If this didn't work, follow this creativecow post to modify cameras.plist file; if there's still no go, follow this guide to either modify the .plist file or convert your footage to Apple ProRes, the native editing format of Final Cut Pro. 
    Hope this helps
    John

  • Supported date formats for sorting

    Can someone point me to a document describing the supported
    date formats for sorting? I mean, how should I format a date column
    in an XML dataset in order to have this column correctly sorted
    using the Spry framework?
    Thank you and sorry if the question is trivial.

    Thanks, what I have done for the moment as a temporary
    solution is to use the two date formats and have them both inside
    the one cell in the table (the column for the sortable date
    yyyy-mm-dd). In my CSS I have created a style for the first date
    that has it's visibility as hidden. That way it's sorting the Date1
    but only Date2 is being shown to the users as the other cells have
    more than one line of text it doesn't look too off centre.
    <div spry:region="ds2">
    <table width="662">
    <tr>
    <th width="127" class="eventhead"
    spry:sort="Date1">Date</th>
    <th width="151" class="eventhead"
    spry:sort="Type">Type</th>
    <th width="146" class="eventhead"
    spry:sort="Title">Title</th>
    <th width="189" class="eventhead"
    spry:sort="Venue">Venue</th>
    </tr>
    <tr spry:repeat="ds2" spry:setrow="ds2">
    <td height="53" class="event">{Date2}<span
    class="eventhide">{Date1}</span></td>
    <td class="event">{Type}</td>
    <td class="event">{Title}</td>
    <td class="event">{Venue}</td>
    </tr>
    </table>
    </div>
    </div>
    It seems to be working for the moment...

  • The ibook author doesn't support Arabic well

    I tried ibook author to writer a littel book in my language (Arabic).
    it doesn't support Arabic well, and some time it remove some letters from the pargraph !!
    what's problome ? and how can I fix it ?

    I actually published an interactive Arabic textbook with iBooks Author - there were a lot of annoying formatting bugs, and more of it was in english than Arabic, as it was for beginners. I submitted it to see how much interest there was for doing more in Arabic, but I haven't had much demand so far.
    check it out if you like:
    https://itunes.apple.com/en/book/interactive-arabic-for-beginners/id670993794?mt =11
    there are a couple mistakes that I am aware of, and will update for the latest version, but if you see anything else, feel free to let me know.

  • QuickTime doesn't support mpeg4

    My quicktime player tells me that it doesn't support mpeg4 when I try to play an mpeg4 on my home xp system. What should I do.

    Are you sure the video is industry-standard MPEG-4? Some formats, including Microsoft's, use the .mp4 extension even though the codec is an offshoot of the standard and so not compatible. From where did the video come?

  • My 7100 is telling me it doesn't support a aac fil...

    I don't get it. Looking at all available info, my 7100 should support aac files. It appears all my ringtones are aac fies. Even sound recordings I have made are aac files. But I downloaded a song in aac format from Vodafone and when I tried to open it, my phone is telling it doesn't support this file format. What the deuce??? Please help.

    Thanks people. It's been a week and no responses.

  • I have cs5 and when I try to download a raw file from my Nikon 810 an error message says this versioln of raw doesn't support this camera model. Yet I just updated cs5 online.

    I have CS5 and when I try to download a raw file from my Nikon 810 I get an error message saying this version of raw doesn't support this camera model. Yet I just updated CS5 online.

    I do not use lightroom and  I have a subscription so I can open all supported RAW formats. You will need DNG file for Your Camera's NEF files for use in Photoshop ACR version.  You can open your NEF files in LR it seems so you could do all your raw conversion with Lightroom and save out Tiff files for processing in Photoshop.   I do use lightroom for I do not need its library.  Lightroom does not support layered files so lightroom is of no value to me.  ACR UI is all I need having a second interface to Adobe Raw Conversion Engine would more annoyance than value to me.

Maybe you are looking for

  • 10g - how to configure sso with iis-

    hi, experts, I have followed Oracle® Business Intelligence Enterprise Edition Deployment Guide to configure SSO with IIS. but I always meet this message. Not Logged In You are not currently logged in to the Oracle BI Server. If you have already logge

  • Ipod classic 80 freezes itunes and won't work

    upgraded itunes to 10.1 (etc). plugged in formerly operating ipod classic 80. it showed up in the device list,. but i could not move the cursor off music. had to use ctrl-alt-delete to close itunes. ipod would not disconnect. tried to disconnectg by

  • ThinkPad W520: Parts Wrongly Listed in and/or Missing from Lenovo Order Status Page

    I ordered a configured ThinkPad W520 off Lenovo.com for USD1500 yesterday.  Later when I went back to check my order status, to my surprise some parts were either shown up incorrectly or simply missing. For example my ThinkPad W520 includes (but not

  • Why do my utilities apps quit without opening?  Can't install CD

    I'm not able to install Norton Antivirus for Mac. It seems to start up but immediately quits. I clicked on the .dmg file with control key down. The options offered me were the default installer or "other". "Other" leads me to the utilities folder in

  • WEB SERVICES

    Dear all, I tI'm using code generated by NW Developer Studio 2004s for use inside Portal components acting as a web service consumer. The problem is that the code generated includes a namespace prefix for each element in the body of the message, but