Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7629

Re: Why does ANSI character convert after a function returns is?

Message-ID <5492881F.4030905@heliks.nl> (permalink)
Date 2014-12-18 08:54 +0100
Newsgroups comp.lang.clipper.visual-objects
From Robert van der Hulst <robert@heliks.nl>
Subject Re: Why does ANSI character convert after a function returns is?
References <oon39ap05d9juuor4vl76939fvftd08aou@4ax.com>

Show all headers | View raw


Dick,

I think your function WriteString2File() does something with the cSource 
parameter that causes this.
Can you show what this function does ?

Robert
> This is very weird....I open a HTML source document and replace a
> couple of phrases (which I use as fields) in it. As a test, I store
> the output on disk:
>
> FUNCTION LoadModelDoc (....) as string
> cSource:=StrTran(cSource,cSearch,cReplace,1)
> WriteString2File("c:\temp\test1.htm",cSource,FALSE)
> RETURN cSource
>
> Open test1.htm in a webbrowser I correctly see the German
> sz-character:
>
> Straße 3
>
> The calling code is like this:
>
> cSource:=LoadModelDoc(....)
> WriteString2File("c:\temp\test2.htm",cSource,FALSE)
>
> However, without any changes, simply returning the value, the sz
> character changes to a character looking as a question mark in a
> diamond when I open test2.htm in a browser:
>
> Stra"-??e 3
>
> So no dbf storage, just returning a string cSource which is still
> correct in the function called  just before returning it's value
> ....and it is changed directly after!
>
> How could this happen be and how can I prevent it?
>
> Dick
> .
>


-- 
Robert van der Hulst
robert@heliks.nl

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-17 21:03 +0100
  Re: Why does ANSI character convert after a function returns is? "Valery N." <mustangsoftcom@gmail.com> - 2014-12-17 12:34 -0800
    Re: Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-17 22:58 +0100
      Re: Why does ANSI character convert after a function returns is? "Valery N." <mustangsoftcom@gmail.com> - 2014-12-17 14:42 -0800
        Re: Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-18 23:58 +0100
          Re: Why does ANSI character convert after a function returns is? "Valery N." <mustangsoftcom@gmail.com> - 2014-12-19 02:06 -0800
  Re: Why does ANSI character convert after a function returns is? "Valery N." <mustangsoftcom@gmail.com> - 2014-12-17 12:44 -0800
  Re: Why does ANSI character convert after a function returns is? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2014-12-18 07:42 +0100
  Re: Why does ANSI character convert after a function returns is? Robert van der Hulst <robert@heliks.nl> - 2014-12-18 08:54 +0100
    Re: Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-18 23:45 +0100
      Re: Why does ANSI character convert after a function returns is? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2014-12-19 08:25 +0100
        Re: Why does ANSI character convert after a function returns is? "Valery N." <mustangsoftcom@gmail.com> - 2014-12-19 02:14 -0800
        Re: Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-19 12:04 +0100
      Re: Why does ANSI character convert after a function returns is? Robert van der Hulst <robert@heliks.nl> - 2014-12-19 13:17 +0100
        Re: Why does ANSI character convert after a function returns is? D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-12-22 16:09 +0100

csiph-web