![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |
1
2
3
4
&debug('CHECK 1 MANUALLY: "'.($sex_cmp =~ /^\s*$male_cmp\s*$/si).'"');
&debug('CHECK 2 MANUALLY: "'.($sex_cmp =~ /^\s*$male_cmp\s*$/sgi).'"');
&debug('CHECK 3 MANUALLY: "'.(lc($sex_cmp) eq lc($male_cmp)).'"');
&debug('CHECK 4 MANUALLY: "'.($sex_cmp =~ /$male_cmp/si).'"');
QuoteCHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: "1"
CHECK 4 MANUALLY: "1"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#Geschlechtsidentifikations-R $assigned_col = (defined($excel_assign{"$eo,$sheet"}[$ba_config{'sex_col'}])) ? ($excel_assign{"$eo,$sheet"}[$ba_config{'sex_col'}]) : ($ba_config{'sex_col'}); $sex_cmp = $current_sheet->{Cells}->[$row]->[$assigned_col]->{Val}; $sex_r = $none; &debug("\n\nba_config{'sex_col'} = $ba_config{'sex_col'}, sex_cmp = $sex_cmp, ba_config{'sex_m'} = $ba_config{'sex_m'}, ba_config{'sex_w'} = $ba_config{'sex_w'}"); foreach my $male_cmp (split(/,/,$ba_config{'sex_m'})) { my $test_chr = ''; $test_chr .= "$_ = ".ord($_).', ' for(split(//,$male_cmp)); $test_chr .= " <-------->;;;;; "; $test_chr .= "$_ = ".ord($_).', ' for(split(//,$sex_cmp)); &debug ($test_chr); &debug ("('sex_cmp' =~ 'male_cmp') -->;;;;; ('$sex_cmp' =~ '$male_cmp')"); &debug ('CHECK 1 MANUALLY: "'.($sex_cmp =~ /^\s*$male_cmp\s*$/si).'"'); &debug ('CHECK 2 MANUALLY: "'.($sex_cmp =~ /^\s*$male_cmp\s*$/sgi).'"'); &debug ('CHECK 3 MANUALLY: "'.($sex_cmp eq $male_cmp).'"'); &debug ('CHECK 4 MANUALLY: "'.($sex_cmp =~ /$male_cmp/si).'"'); if($ba_config{'case_m'} == 1) { &debug('INNERHALB (case_m == 1), '."male_cmp = $male_cmp, sex_cmp = $sex_cmp"); $sex_r = 'r' if ($sex_cmp =~ /^\s*$male_cmp\s*$/s); &debug("sex_r = $sex_r"); } else { &debug('INNERHALB (case_m == 0), '."male_cmp = $male_cmp, sex_cmp = $sex_cmp"); $sex_r = 'r' if ($sex_cmp =~ /^\s*$male_cmp\s*$/si); &debug("sex_r = $sex_r"); } last if($sex_r ne $none); } &debug("sex_r = $sex_r"); foreach my $female_cmp (split(/,/,$ba_config{'sex_w'})) { my $test_chr = ''; $test_chr .= "$_ = ".ord($_).', ' for(split(//,$female_cmp)); $test_chr .= " <-------->;;;;; "; $test_chr .= "$_ = ".ord($_).', ' for(split(//,$sex_cmp)); &debug ($test_chr); &debug ("('sex_cmp' =~ 'female_cmp') -->;;;;; ('$sex_cmp' =~ '$female_cmp')"); &debug ('CHECK 1 MANUALLY: "'.($sex_cmp =~ /^\s*$female_cmp\s*$/si).'"'); &debug ('CHECK 2 MANUALLY: "'.($sex_cmp =~ /^\s*$female_cmp\s*$/sgi).'"'); &debug ('CHECK 3 MANUALLY: "'.($sex_cmp eq $female_cmp).'"'); &debug ('CHECK 4 MANUALLY: "'.($sex_cmp =~ /$female_cmp/si).'"'); if($ba_config{'case_w'} == 1) { &debug('INNERHALB (case_w == 1), '."female_cmp = $female_cmp, sex_cmp = $sex_cmp"); $sex_r = '' if ($sex_cmp =~ /^\s*$female_cmp\s*$/s); &debug("sex_r = $sex_r"); } else { &debug('INNERHALB (case_w == 0), '."female_cmp = $female_cmp, sex_cmp = $sex_cmp"); $sex_r = '' if ($sex_cmp =~ /^\s*$female_cmp\s*$/si); &debug("sex_r = $sex_r"); } last if($sex_r ne $none); } &debug("sex_r = $sex_r");
Quoteanrede_col = 0
anrede_replace = 1
anrede_vorsatz = Sehr geehrte
case_m = 0
case_w = 0
nachname_col = 3
name_vorsatz_col = 7
reduce_whitespaces = 1
remove_n = 0
sex_col = 0
sex_m = Herr,Herrn
sex_w = Frau
status = 1
titel_add = 1
titel_col = 7
titel_search_anrede = 1
titel_search_name = 1
titel_search_prename = 1
vorname_col = 2
zusatz_add = 1
zusatz_search_anrede = 1
zusatz_search_name = 1
zusatz_search_prename = 1
ba_config{'sex_col'} = 0, sex_cmp = Herr, ba_config{'sex_m'} = Herr,Herrn, ba_config{'sex_w'} = Frau
H = 72, e = 101, r = 114, r = 114, <--------> H = 72, e = 101, r = 114, r = 114,
('sex_cmp' =~ 'male_cmp') --> ('Herr' =~ 'Herr')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: "1"
CHECK 4 MANUALLY: "1"
INNERHALB (case_m == 0), male_cmp = Herr, sex_cmp = Herr
sex_r = none
H = 72, e = 101, r = 114, r = 114, n = 110, <--------> H = 72, e = 101, r = 114, r = 114,
('sex_cmp' =~ 'male_cmp') --> ('Herr' =~ 'Herrn')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: ""
CHECK 4 MANUALLY: ""
INNERHALB (case_m == 0), male_cmp = Herrn, sex_cmp = Herr
sex_r = none
sex_r = none
F = 70, r = 114, a = 97, u = 117, <--------> H = 72, e = 101, r = 114, r = 114,
('sex_cmp' =~ 'female_cmp') --> ('Herr' =~ 'Frau')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: ""
CHECK 4 MANUALLY: ""
INNERHALB (case_w == 0), female_cmp = Frau, sex_cmp = Herr
sex_r = none
sex_r = none
.. hiervon jetzt sehr viel, hier mal etwas, wo sex_cmp weiblich ist:
ba_config{'sex_col'} = 0, sex_cmp = Frau, ba_config{'sex_m'} = Herr,Herrn, ba_config{'sex_w'} = Frau
H = 72, e = 101, r = 114, r = 114, <--------> F = 70, r = 114, a = 97, u = 117,
('sex_cmp' =~ 'male_cmp') --> ('Frau' =~ 'Herr')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: ""
CHECK 4 MANUALLY: ""
INNERHALB (case_m == 0), male_cmp = Herr, sex_cmp = Frau
sex_r = none
H = 72, e = 101, r = 114, r = 114, n = 110, <--------> F = 70, r = 114, a = 97, u = 117,
('sex_cmp' =~ 'male_cmp') --> ('Frau' =~ 'Herrn')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: ""
CHECK 4 MANUALLY: ""
INNERHALB (case_m == 0), male_cmp = Herrn, sex_cmp = Frau
sex_r = none
sex_r = none
F = 70, r = 114, a = 97, u = 117, <--------> F = 70, r = 114, a = 97, u = 117,
('sex_cmp' =~ 'female_cmp') --> ('Frau' =~ 'Frau')
CHECK 1 MANUALLY: ""
CHECK 2 MANUALLY: ""
CHECK 3 MANUALLY: "1"
CHECK 4 MANUALLY: "1"
INNERHALB (case_w == 0), female_cmp = Frau, sex_cmp = Frau
sex_r = none
sex_r = none
QuoteWarum ist das überhaupt so, ich hatte jahrelang niemals Probleme damit.
Weiss jemand eine Lösung?
QuoteWarum ist das überhaupt so, ich hatte jahrelang niemals Probleme damit.
Weiss jemand eine Lösung?
&debug('is_utf8(male_cmp) = '.utf8::is_utf8($male_cmp).', is_utf8(sex_cmp) = '.utf8::is_utf8($sex_cmp));
Quoteis_utf8(male_cmp) = 1, is_utf8(sex_cmp) =
Quote---------- Perl ----------
Malformed UTF-8 character (unexpected continuation byte 0xa7, with no preceding start byte) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xe4, immediately after start byte 0xfc) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xf6, immediately after start byte 0xe4) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0x5c, immediately after start byte 0xf6) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0xb5, with no preceding start byte) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0x80, with no preceding start byte) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0xb4, with no preceding start byte) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0x20, immediately after start byte 0xdf) at mmc.pl line 709, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0xa7, with no preceding start byte) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xe4, immediately after start byte 0xfc) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xf6, immediately after start byte 0xe4) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xdc, immediately after start byte 0xf6) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xc4, immediately after start byte 0xdc) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0xd6, immediately after start byte 0xc4) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0x5c, immediately after start byte 0xd6) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0xb5, with no preceding start byte) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0x80, with no preceding start byte) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected continuation byte 0xb4, with no preceding start byte) at mmc.pl line 2809, <DATA> line 164.
Malformed UTF-8 character (unexpected non-continuation byte 0x20, immediately after start byte 0xdf) at mmc.pl line 2809, <DATA> line 164.
@ 535 not utf8
SV = PV(0x3c3e880) at 0x2d14630
REFCNT = 1
FLAGS = (POK,pPOK,UTF8)
PV = 0x3c56ffc "Hinzuf\374gen"\0Could not open Y:\Pete\Perl\Projekte\mmComplete\error_log.txt! at mmc.pl line 504, <DATA> line 164.
[UTF8 "Hinzuf\x{2796e005}"]
CUR = 10
LEN = 12
SV = PVMG(0x3c5733c) at 0x2d14630
REFCNT = 1
FLAGS = (SMG,POK,pPOK,UTF8)
IV = 0
NV = 0
PV = 0x3c56ffc "Hinzuf\374gen"\0 [UTF8 "Hinzuf\x{2796e005}"]
CUR = 10
LEN = 12
MAGIC = 0x3c58f24
MG_VIRTUAL = &PL_vtbl_utf8
MG_TYPE = PERL_MAGIC_utf8(w)
MG_LEN = 6
Output completed (3 sec consumed) - Normal Termination
$data =~ s/[^A-Za-z0-9!§$%&\/()=?{[\]}\\+#*'üäöÜÄÖ\-.,;:_<>|µ¤~\n\t\^´ß ]/ /sg;
QuoteTERMINOLOGY
o character: a character in the range 0..(2**32-1) (or
more). (What Perl's strings are made of.)
o byte: a character in the range 0..255 (A special case of
a Perl character.)
o octet: 8 bits of data, with ordinal values 0..255 (Term
for bytes passed to or from a non-Perl context, e.g. a
disk file.)
QuoteCAVEAT: When you run "$octets = encode("utf8",
$string)", then $octets may not be equal to $string.
Though they both contain the same data, the utf8 flag
for $octets is always off. When you encode anything,
utf8 flag of the result is always off, even when it
contains completely valid utf8 string. See "The UTF-8
flag" below.
![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |